Skip to content

Commit

Permalink
Adds the Label Checker action to prevent merging unless labels are co…
Browse files Browse the repository at this point in the history
…rrect. (awsdocs#4349)
  • Loading branch information
beqqrry-aws authored Feb 8, 2023
1 parent 7934c7f commit 555b6c0
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/label-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Label Checker
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
- unlabeled

jobs:

check_labels:
name: Check Required labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
all_of: status/code-review-complete,status/ready-to-merge
repo_token: ${{ secrets.GITHUB_TOKEN }}
check_text_labels:
name: Check Text labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: status/text-review-complete,status/no-text-review-needed
none_of: status/text-review-needed
repo_token: ${{ secrets.GITHUB_TOKEN }}
check_test_labels:
name: Check Test labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: status/test-review-complete,status/no-test-review-needed
none_of: status/test-review-needed
repo_token: ${{ secrets.GITHUB_TOKEN }}
check_hold_labels:
name: Check Holding Labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
none_of: status/on-hold,status/future-release
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 555b6c0

Please sign in to comment.