-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add label checking for group reviews (#153)
* Feat: Add ability to check for a label marking a group review approval * Docs(ci): Add documentation about group review label * Docs(ci): Add example of GitHub CLI adding a label to a pr
- Loading branch information
Showing
2 changed files
with
27 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,20 @@ | ||
name: Verify group review | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- labeled | ||
|
||
env: | ||
TARGET_LABEL: 'group_review_lgtm' | ||
|
||
jobs: | ||
check_review_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "::error Missing review label" && exit 1 | ||
if: "!contains(github.event.pull_request.labels.*.name, env.TARGET_LABEL)" | ||
|
||
- run: echo "Has review label" | ||
|
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