-
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.
Add custom priority label support (#2)
Signed-off-by: David Greven <[email protected]>
- Loading branch information
Showing
12 changed files
with
4,425 additions
and
260 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,18 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": "standard-with-typescript", | ||
"rules": { | ||
"@typescript-eslint/no-floating-promises": "off" | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
"project": "./tsconfig.json" | ||
}, | ||
"ignorePatterns": [ | ||
"**/*.js" | ||
] | ||
} |
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
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,18 +1,18 @@ | ||
name: MoSCoW Prioritization | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, opened, unlabeled, reopened] | ||
pull_request_target: | ||
types: [labeled, opened, unlabeled, reopened] | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
check: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: grevend/[email protected] | ||
with: | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
token: '${{ 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 |
---|---|---|
|
@@ -8,21 +8,31 @@ MoSCoW prioritization action to manage label-based requirements prioritization | |
name: MoSCoW Prioritization | ||
|
||
on: | ||
pull_request: | ||
types: [labeled, opened, unlabeled, reopened] | ||
pull_request_target: | ||
types: [labeled, opened, unlabeled, reopened] | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
check: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: grevend/[email protected] | ||
with: | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
``` | ||
_Note: This action requires access to the `GITHUB_TOKEN` to call GitHub's REST API_ | ||
_Note: This action requires access to the `GITHUB_TOKEN` to call GitHub's REST API_ | ||
|
||
### All options | ||
|
||
Input | Description | Default | ||
--- | --- | --- | ||
token | The workflows `GITHUB_TOKEN` secret | | ||
wont-have-label | Label to expect on low-priority PRs | `wont have` | ||
could-have-label | Label to expect on PRs of little relevance | `could have` | ||
should-have-label | Label to expect on non-critical PRs | `should have` | ||
must-have-label | Label to expect on essential PRs | `must have` |
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
Oops, something went wrong.