-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: describe required permissions (#12)
- Loading branch information
1 parent
7a3f637
commit aa8cbdd
Showing
3 changed files
with
44 additions
and
12 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,23 @@ | ||
name: Labels Check | ||
|
||
on: | ||
pull_request: | ||
types: [opened, labeled, unlabeled, synchronize] | ||
|
||
jobs: | ||
QA-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./ | ||
with: | ||
hasSome: QA:tested,QA:skipped | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
Do_not_merge-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./ | ||
with: | ||
hasNone: do not merge,blocked | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} |
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
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
name: 'PR labels checker' | ||
description: 'Checks PR labels for specified rules' | ||
name: "PR labels checker" | ||
description: "Checks PR labels for specified rules" | ||
inputs: | ||
hasSome: | ||
description: 'Comma separated list of labels, PR needs at least of them' | ||
description: "Comma separated list of labels, PR needs at least of them" | ||
required: false | ||
hasAll: | ||
description: 'Comma separated list of labels, PR needs all of them' | ||
description: "Comma separated list of labels, PR needs all of them" | ||
required: false | ||
hasNone: | ||
description: 'Comma separated list of labels, PR must not have any of them' | ||
description: "Comma separated list of labels, PR must not have any of them" | ||
required: false | ||
hasNotAll: | ||
description: 'Comma separated list of labels, PR must not have all of them' | ||
description: "Comma separated list of labels, PR must not have all of them" | ||
required: false | ||
githubToken: | ||
description: 'The Github secret token to access PR check API' | ||
description: "The Github secret token to access PR check API" | ||
required: true | ||
outputs: | ||
passed: | ||
description: 'Have the provided labels passed all tests?' | ||
description: "Have the provided labels passed all tests?" | ||
runs: | ||
using: 'node12' | ||
main: 'index.js' | ||
using: "node12" | ||
main: "index.js" | ||
branding: | ||
icon: 'tag' | ||
color: 'blue' | ||
icon: "tag" | ||
color: "blue" |