issue-labeled.yml 1.2 KB

123456789101112131415161718192021222324252627282930
  1. name: Issue Labeled
  2. on:
  3. issues:
  4. types: [labeled]
  5. jobs:
  6. reply-labeled:
  7. if: github.repository == 'withastro/astro'
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: remove triage
  11. if: contains(github.event.label.description, '(priority)') && contains(github.event.issue.labels.*.name, 'needs triage')
  12. uses: actions-cool/issues-helper@v3
  13. with:
  14. actions: "remove-labels"
  15. token: ${{ secrets.GITHUB_TOKEN }}
  16. issue-number: ${{ github.event.issue.number }}
  17. labels: "needs triage"
  18. - name: needs repro
  19. if: github.event.label.name == 'needs repro'
  20. uses: actions-cool/issues-helper@v3
  21. with:
  22. actions: "create-comment, remove-labels"
  23. token: ${{ secrets.GITHUB_TOKEN }}
  24. issue-number: ${{ github.event.issue.number }}
  25. body: |
  26. Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://astro.new). Issues marked with `needs repro` will be closed if they have no activity within 3 days.
  27. labels: "needs triage"