1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-13 21:54:24 +00:00
gitea/docs/content/usage
Nanguan Lin db545b208b
Implement actions badge svgs (#28102)
replace #27187 
close #23688
The badge has two parts: label(workflow name) and message(action
status). 5 colors are provided with 7 statuses.
Color mapping:
```go
var statusColorMap = map[actions_model.Status]string{
	actions_model.StatusSuccess:   "#4c1",    // Green
	actions_model.StatusSkipped:   "#dfb317", // Yellow
	actions_model.StatusUnknown:   "#97ca00", // Light Green
	actions_model.StatusFailure:   "#e05d44", // Red
	actions_model.StatusCancelled: "#fe7d37", // Orange
	actions_model.StatusWaiting:   "#dfb317", // Yellow
	actions_model.StatusRunning:   "#dfb317", // Yellow
	actions_model.StatusBlocked:   "#dfb317", // Yellow
}
```
preview:

![1](https://github.com/go-gitea/gitea/assets/70063547/5465cbaf-23cd-4437-9848-2738c3cb8985)

![2](https://github.com/go-gitea/gitea/assets/70063547/ec393d26-c6e6-4d38-b72c-51f2494c5e71)

![3](https://github.com/go-gitea/gitea/assets/70063547/3edb4fdf-1b08-4a02-ab2a-6bdd7f532fb2)

![4](https://github.com/go-gitea/gitea/assets/70063547/8c189de2-2169-4251-b115-0e39a52f3df8)

![5](https://github.com/go-gitea/gitea/assets/70063547/3fe22c73-c2d7-4fec-9ea4-c501a1e4e3bd)

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: delvh <dev.lh@web.de>
2024-02-27 18:56:18 +01:00
..
actions Update docs about DEFAULT_ACTIONS_URL (#29442) 2024-02-27 09:18:35 +00:00
packages Docker Tag Information in Docs (#29047) 2024-02-16 21:22:00 +08:00
_index.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
_index.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
agit-support.en-us.md Update agit-support.en-us.md (#27652) 2023-10-17 17:53:36 +08:00
agit-support.zh-cn.md Change the default branch in the agit docs (#27621) 2023-10-14 09:50:23 -04:00
authentication.en-us.md Revert "Support SAML authentication (#25165)" (#29358) 2024-02-24 12:18:49 +08:00
authentication.zh-cn.md Fix some incorrect links in docs (#28191) 2023-11-24 13:57:09 +00:00
badge.en-us.md Implement actions badge svgs (#28102) 2024-02-27 18:56:18 +01:00
blame.en-us.md Support .git-blame-ignore-revs file (#26395) 2023-09-16 17:42:34 +00:00
clone-filter.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
clone-filter.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
code-owners.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
incoming-email.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
incoming-email.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
issue-pull-request-templates.en-us.md Explained where create issue/PR template (#29035) (#29266) 2024-02-20 14:12:47 -06:00
issue-pull-request-templates.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
labels.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
labels.zh-cn.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
linked-references.en-us.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
linked-references.zh-cn.md Fix incorrect Chinese translation of linked-references.zh-cn.md (#27382) 2023-10-02 06:13:08 +00:00
merge-message-templates.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
merge-message-templates.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
multi-factor-authentication.en-us.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
permissions.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
permissions.zh-cn.md Update zh-cn documentation (#26406) 2023-08-14 01:35:49 -04:00
profile-readme.en-us.md Fix doc img path in profile readme (#28994) 2024-01-31 21:32:17 +08:00
profile-readme.zh-cn.md Update some translations and fix markdown formatting (#29099) 2024-02-11 19:03:49 +02:00
protected-tags.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
protected-tags.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
pull-request.en-us.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
pull-request.zh-cn.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
push.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
push.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
repo-mirror.en-us.md Update repo-mirror.en-us.md (#28612) 2023-12-27 00:36:11 +08:00
repo-mirror.zh-cn.md Update zh-cn documentation (#26406) 2023-08-14 01:35:49 -04:00
secrets.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
secrets.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
template-repositories.en-us.md Rephrase template documentation to be more clear about .gitea/template (#27450) 2023-10-06 14:51:33 +08:00
template-repositories.zh-cn.md Update zh-cn documentation (#26406) 2023-08-14 01:35:49 -04:00
webhooks.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
webhooks.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00