Skip to content

Commit

Permalink
ci: add triage label to new issues only if no label has been set when…
Browse files Browse the repository at this point in the history
… creating it (#55)

Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan authored Oct 3, 2024
1 parent c154c67 commit e1c5701
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_URL: ${{ github.event.issue.html_url }}
run: |
gh issue edit $ISSUE_URL --add-label "S-triage"
# check if issue doesn't have any labels
if [[ $(gh issue view $ISSUE_URL --json labels -q '.labels | length') -eq 0 ]]; then
# add S-triage label
gh issue edit $ISSUE_URL --add-label "S-triage"
fi

0 comments on commit e1c5701

Please sign in to comment.