Badgen.net: Github Actions (CI/CD) badge

Created on 15 Aug 2019  路  4Comments  路  Source: badgen/badgen.net

Seems like Github already have a badge at

https://github.com/<user>/<repo>/workflows/<workflow name>/badge.svg

https://github.com/actions/toolkit/workflows/Main%20workflow/badge.svg

But as we know, our badges are better :P

Most helpful comment

Just found that it's available through the CheckRuns api.

ProTip: use conclusion for state, not status.

https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-specific-ref

I think we should include support inside the /status endpoint.

All 4 comments

Yep, let's do it!

Here are the docs: https://help.github.com/en/articles/configuring-a-workflow#adding-a-workflow-status-badge-to-your-repository

Special note:

Badges display the status of your default branch (usually master).

As far as I can tell, there is no way to specify a particular branch.

I guess we could look up in api docs
https://developer.github.com/v4/
https://developer.github.com/v3/

But I didn't found anything for new actions/workflows

Just found that it's available through the CheckRuns api.

ProTip: use conclusion for state, not status.

https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-specific-ref

I think we should include support inside the /status endpoint.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amio picture amio  路  5Comments

tunnckoCore picture tunnckoCore  路  4Comments

amio picture amio  路  3Comments

GMartigny picture GMartigny  路  6Comments

bjankord picture bjankord  路  3Comments