| 1 | name: triage opened issue |
| 2 | |
| 3 | on: |
| 4 | issues: |
| 5 | types: |
| 6 | - reopened |
| 7 | - opened |
| 8 | |
| 9 | jobs: |
| 10 | label-issue: |
| 11 | runs-on: ubuntu-latest |
| 12 | permissions: |
| 13 | issues: write |
| 14 | steps: |
| 15 | - run: gh issue edit "$NUMBER" --add-label "$LABELS" |
| 16 | env: |
| 17 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 18 | GH_REPO: ${{ github.repository }} |
| 19 | NUMBER: ${{ github.event.issue.number }} |
| 20 | LABELS: triage |