Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/JasonEtco/action-badges

๐Ÿ›กโšก๏ธ A README badge service for GitHub Actions
https://github.com/JasonEtco/action-badges

actions badges github now svg

Last synced: 3 months ago
JSON representation

๐Ÿ›กโšก๏ธ A README badge service for GitHub Actions

Awesome Lists containing this project

README

        

This project is deprecated! Badges are now officially part of the GitHub Actions platform!

Action Badges


A README badge service for GitHub Actions


Codecov

## Usage

Get a status badge for all GitHub Action runs on the `master` branch of a repository:

```md
![badge](https://action-badges.now.sh/JasonEtco/example-repo)
```

Specify an action with the `action` query parameter:

```md
![badge](https://action-badges.now.sh/JasonEtco/example-repo?action=test)
```

**Note:** This service only works for public repositories! It cannot read the status of your private repos.

## How it works

When the `/:owner/:repo` endpoint is requested, the app makes a request to the GitHub API to get the list of check suites created by the GitHub Actions app. It then calculates the status based on the sum conclusion of the check suites and responds with some SVG code (thanks to [badgen](https://github.com/amio/badgen)).