Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/transferwise/tw-check-label
https://github.com/transferwise/tw-check-label
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/transferwise/tw-check-label
- Owner: transferwise
- Created: 2020-09-09T15:27:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T03:35:46.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T17:35:34.583Z (2 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- 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/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
```Then, enable the corresponding status check in the branch protection rules of your repo.