diff --git a/.github/workflows/workflow-next.yml b/.github/workflows/workflow-next.yml new file mode 100644 index 0000000000..abc21e420c --- /dev/null +++ b/.github/workflows/workflow-next.yml @@ -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 }} diff --git a/.github/workflows/workflow-roadmap.yml b/.github/workflows/workflow-roadmap.yml index 5a7c9bb708..da7bc7abce 100644 --- a/.github/workflows/workflow-roadmap.yml +++ b/.github/workflows/workflow-roadmap.yml @@ -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 diff --git a/.github/workflows/workflow-triage.yml b/.github/workflows/workflow-triage.yml index 1c1717e3fb..d03f188005 100644 --- a/.github/workflows/workflow-triage.yml +++ b/.github/workflows/workflow-triage.yml @@ -3,9 +3,7 @@ name: Add triage label to new issues on: issues: types: - - reopened - opened - - unassigned jobs: label-issues: runs-on: ubuntu-latest