gitea/modules
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 Improve the `issue_comment` workflow trigger event (#29277) 2024-02-22 22:47:35 +08:00
activitypub
analyze
assetfs
auth Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
avatar Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
badge Implement actions badge svgs (#28102) 2024-02-27 18:56:18 +01:00
base Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
cache Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
charset
container
csv
emoji
eventsource
generate Refactor JWT secret generating & decoding code (#29172) 2024-02-16 15:18:30 +00:00
git Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
gitgraph More `db.DefaultContext` refactor (#27265) 2023-09-29 12:12:54 +00:00
gitrepo
graceful
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer Add `io.Closer` guidelines (#29387) 2024-02-25 13:05:23 +00:00
issue/template
json
label
lfs Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
log Reduce some allocations in type conversion (#26772) 2023-08-29 00:43:16 +08:00
markup Refactor markup rendering to accept general "protocol:" prefix (#29276) 2024-02-21 10:08:08 +00:00
mcaptcha
metrics
migration Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
nosql
optional Make optional.Option[T] type serializable (#29282) 2024-02-23 21:51:46 +00:00
options
packages Integrate alpine `noarch` packages into other architectures index (#29137) 2024-02-25 15:10:55 +00:00
paginator
pprof
private
process
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository Ignore the linux anchor point to avoid linux migrate failure (#29295) 2024-02-22 17:40:53 +00:00
secret Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
session
setting Customizable "Open with" applications for repository clone (#29320) 2024-02-24 13:12:17 +00:00
sitemap
ssh
storage Fix object storage path handling (#27024) 2023-09-13 01:18:52 +00:00
structs Add merge style `fast-forward-only` (#28954) 2024-02-12 23:37:23 +01:00
svg
sync
system
templates Fix mail template error (#29410) 2024-02-26 22:31:30 +00:00
test
testlogger
timeutil
translation Improve TrHTML and add more tests (#29228) 2024-02-18 12:15:24 +00:00
turnstile
typesniffer Detect ogg mime-type as audio or video (#26494) 2023-08-15 10:31:25 +08:00
updatechecker
uri
user
util Use `crypto/sha256` (#29386) 2024-02-25 13:32:13 +00:00
validation
web Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
webhook