-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: fix push tag workflow to get version * chore: add asset path for wheel upload * chore: add workflow to prioritize issues * chore: update workflow to use endsWith
- Loading branch information
1 parent
89af593
commit c783757
Showing
5 changed files
with
55 additions
and
8 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
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,42 @@ | ||
# This workflow runs daily at noon. | ||
# | ||
# - Get list of labels. | ||
# - Determine issue priority based on labels: | ||
# - C: convention && P: bug --> U: high | ||
# - C: style && P: bug --> U: medium | ||
# - C: stakeholder && P:bug --> U: medium | ||
# - C: convention && P: enhancement --> U: medium | ||
# - C: style && P: enhancement --> U: low | ||
# - C: stakeholder && P: enhancement --> U: low | ||
# - chore || P: docs --> U: low | ||
name: Prioritize Issues Workflow | ||
|
||
on: | ||
schedule: | ||
cron: '00 12 * * *' | ||
|
||
jobs: | ||
prioritize_issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get Issue Labels | ||
id: getlabels | ||
uses: snnaplab/get-labels-action@v1 | ||
|
||
- name: Add High Urgency Labels | ||
if: (endsWith(steps.getlabels.outputs.labels, ' convention ') && endsWith(steps.getlabels.outputs.labels, ' bug ')) | ||
uses: andymckay/labeler@master | ||
with: | ||
add-labels: "U: high" | ||
|
||
- name: Add Medium Urgency Labels | ||
if: (endsWith(steps.getlabels.outputs.labels, ' style ') && endsWith(steps.getlabels.outputs.labels, ' bug ')) || (endsWith(steps.getlabels.outputs.labels, ' stakeholder ') && endsWith(steps.getlabels.outputs.labels, ' bug ')) || (endsWith(steps.getlabels.outputs.labels, ' convenction ') && endsWith(steps.getlabels.outputs.labels, ' enhancement ')) | ||
uses: andymckay/labeler@master | ||
with: | ||
add-labels: "U: medium" | ||
|
||
- name: Add Low Urgency Labels | ||
if: (endsWith(steps.getlabels.outputs.labels, ' style ') && endsWith(steps.getlabels.outputs.labels, ' enhancement ')) || (endsWith(steps.getlabels.outputs.labels, ' stakeholder ') && endsWith(steps.getlabels.outputs.labels, ' enhancement ')) || endsWith(steps.getlabels.outputs.labels, ' doc ') || contains(steps.getlabels.outputs.labels, ' chore ') | ||
uses: andymckay/labeler@master | ||
with: | ||
add-labels: "U: low" |
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,3 +1,6 @@ | ||
# This workflow runs when a new issue is opened. | ||
# | ||
# - Apply the 'fresh' label. | ||
name: Issue Open Workflow | ||
|
||
on: | ||
|
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