Skip to content

Commit

Permalink
chore(workflow): don't apply triage label if issue is already assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Mar 6, 2024
1 parent ca47e8c commit dcd6aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/workflow-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit dcd6aee

Please sign in to comment.