forked from awsdocs/aws-doc-sdk-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds the Label Checker action to prevent merging unless labels are co…
…rrect. (awsdocs#4349)
- Loading branch information
1 parent
7934c7f
commit 555b6c0
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |