From dcd6aee8dce9d8aeec9b064743eb8c7e17076461 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Thu, 7 Mar 2024 10:48:02 +1100 Subject: [PATCH] chore(workflow): don't apply triage label if issue is already assigned --- .github/workflows/workflow-triage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow-triage.yml b/.github/workflows/workflow-triage.yml index d03f188005..8f5431b72d 100644 --- a/.github/workflows/workflow-triage.yml +++ b/.github/workflows/workflow-triage.yml @@ -10,7 +10,7 @@ jobs: permissions: issues: write steps: - - run: gh issue edit "$NUMBER" --add-label triage + - run: test "$(gh issue view "$NUMBER" --json assignees --jq '.assignees | length')" = 0 && gh issue edit "$NUMBER" --add-label triage env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }}