https://github.com/transferwise/tw-auto-label
https://github.com/transferwise/tw-auto-label
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/transferwise/tw-auto-label
- Owner: transferwise
- Created: 2021-03-02T16:31:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T15:44:29.000Z (about 3 years ago)
- Last Synced: 2025-02-17T05:24:31.978Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
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`.
If not the action automatically assigns `change: standard`
## 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: transferwise/tw-check-label@1.0.1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
```
Then, enable the corresponding status check in the branch protection rules of your repo.