badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
22.92k stars 5.47k forks source link

Gitea workflow badge #10202

Open philipp-horstenkamp opened 4 weeks ago

philipp-horstenkamp commented 4 weeks ago

📋 Description

Gitea now supports badges in there workflows:

https://docs.gitea.com/next/usage/badge

🔗 Data

https://docs.gitea.com/next/usage/badge

🎤 Motivation

Gitea is a greate engine. Unsing your configurator would make the use easier.

chris48s commented 1 week ago

One way to do this would be to write a "scraper" for Gitea's SVG badge, like we do with GitHub Actions workflows. https://github.com/badges/shields/blob/master/services/github/github-actions-workflow-status.service.js

The issue with this approach (which we also have with GitHub and GitLab badges that scrape like this) is that it won't work for private repos. We allow Gitea users who self-host to set a token for API calls and it wouldn't work for this call.

Any idea if it is possible to get this data via an API call? If not, I think we go with the SVG scraper and accept that limitation, but it would be nice if we could avoid that problem.