From baf945b1ea12e09fc39db7b743c98d4e29d6f01c Mon Sep 17 00:00:00 2001 From: Elliot DeNolf Date: Tue, 28 May 2024 15:20:16 -0400 Subject: [PATCH] ci: remove needs-triage on issue assigned --- .github/workflows/label-on-change.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/label-on-change.yml b/.github/workflows/label-on-change.yml index d0278d8482..74710934b5 100644 --- a/.github/workflows/label-on-change.yml +++ b/.github/workflows/label-on-change.yml @@ -5,9 +5,7 @@ on: issues: types: - assigned - - unassigned - closed - - edited - labeled - reopened @@ -94,6 +92,19 @@ jobs: with: labels: 'status: needs-triage' + on-issue-assigned: + runs-on: ubuntu-latest + permissions: + issues: write + if: > + github.event.action == 'assigned' && + contains(github.event.issue.labels.*.name, 'status: needs-triage') + steps: + - name: Remove needs-triage label on issue assign + uses: actions-ecosystem/action-remove-labels@v1 + with: + labels: 'status: needs-triage' + # on-pr-merge: # runs-on: ubuntu-latest # if: github.event.pull_request.merged == true