Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/transferwise/tw-check-label


https://github.com/transferwise/tw-check-label

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

# Check labels in PR

Checks that one of the following labels is present on the pull request: `change: standard`, `change:emergency`, `change:impactful`.

## Setup

Create a `.yml` file under the `.github/workflows/` directory in your repository with the following contents:

```
name: Expect labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: erdostw/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
```

Then, enable the corresponding status check in the branch protection rules of your repo.