CI: Require all checks passing before merging #205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add Triage Label | |
on: | |
issues: | |
types: | |
- reopened | |
- opened | |
jobs: | |
triage: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: Add or check for existing labels | |
# add the triage label only if no label has been added | |
if: ${{ github.event.issue.labels[0] == null }} | |
run: gh issue edit "$NUMBER" --add-label "triage" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_REPO: ${{ github.repository }} | |
NUMBER: ${{ github.event.issue.number }} |