-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Provide actions badge svgs #27187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide actions badge svgs #27187
Conversation
If we could template the SVGs in |
Also, I suggest lowercasing the status text, and likely it should just mirror the 4 commit statuses we currently have in the displayed string. |
https://github.com/essentialkaos/go-badge seems like a package we could use. |
The current method could use CDN and web browser cache better to reduce possible network requests. |
Caching can be achieved with proper cache headers as well even when generating those badges dynamically. BTW, I would personally short the text to |
Could you share the screenshots, if applicable? |
There is no screenshots. Only svg files on files changed tab. |
This is only for Gitea Actions but not any other integrated third-party CI/CD system. So use |
Checking how GitHub does it, they require the workflow filename in the URL and render the workflow name into the SVG. I guess this would be good to have because because if there are multiple workflows, having all of them show "Gitea Actions" would be very confusing. Example GitHub badges: We can put the Gitea icon in them of course. |
I think it can not easily templated with golang because the |
Fix #23688