https://github.com/transferwise/tw-check-label
https://github.com/transferwise/tw-check-label
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/transferwise/tw-check-label
- Owner: transferwise
- Created: 2020-09-09T15:27:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T03:35:46.000Z (over 3 years ago)
- Last Synced: 2025-05-14T18:08:50.463Z (about 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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/tw-check-label@v1.0.0
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
```
Then, enable the corresponding status check in the branch protection rules of your repo.