Skip to content

Commit

Permalink
Merge pull request #2073 from Inist-CNRS/add-auto-label
Browse files Browse the repository at this point in the history
Adding labels to issues
  • Loading branch information
touv authored Jun 26, 2024
2 parents 4e519a6 + 3e56c53 commit 727a3eb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Adding labels to issues
# https://docs.github.com/en/actions/managing-issues-and-pull-requests/adding-labels-to-issues
#
name: Label issues
on:
issues:
types:
- reopened
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --add-label "$LABELS"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
LABELS: Triage

0 comments on commit 727a3eb

Please sign in to comment.