Skip to content

Commit

Permalink
chore: workflow tweaks (#930)
Browse files Browse the repository at this point in the history
- Clear triage label when moved to next
- Only add triage label on new tickets
  • Loading branch information
alecthomas authored Feb 12, 2024
1 parent ff2c03d commit 4d0324f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/workflow-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This name needs to be kept in sync with the workflow_run event in workflow-roadmap.yml
name: Clear triage label when moved to next
on:
issues:
types:
- labeled
jobs:
clear-triage-label:
if: github.event.label.name == 'next'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --remove-label triage
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
1 change: 1 addition & 0 deletions .github/workflows/workflow-roadmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
workflows:
- Add triage label to new issues
- Clear workflow labels once an issue is assigned
- Clear triage label when moved to next
types: [completed]
concurrency:
group: ${{ github.ref }}-workflow-roadmap
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/workflow-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ name: Add triage label to new issues
on:
issues:
types:
- reopened
- opened
- unassigned
jobs:
label-issues:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4d0324f

Please sign in to comment.