2
0

auto_label_issues.yml 460 B

1234567891011121314151617181920
  1. name: auto-label-new-issues
  2. on:
  3. issues:
  4. types: [opened]
  5. permissions: {}
  6. jobs:
  7. automate-issues-labels:
  8. runs-on: ubuntu-latest
  9. permissions:
  10. issues: write
  11. steps:
  12. - name: Label new issues with 'needs-triage'
  13. env:
  14. GH_TOKEN: ${{ github.token }}
  15. GH_REPO: ${{ github.repository }}
  16. ISSUE_NUMBER: ${{ github.event.issue.number }}
  17. run: gh issue edit "$ISSUE_NUMBER" --add-label needs-triage