issue-labeled.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. name: Label Based Actions
  2. on:
  3. issues:
  4. types: [labeled]
  5. # pull_request:
  6. # types: [labeled]
  7. jobs:
  8. reply-labeled:
  9. runs-on: ubuntu-latest
  10. steps:
  11. # - name: remove pending
  12. # if: github.event.label.name == 'enhancement' || github.event.label.name == 'bug'
  13. # uses: actions-cool/issues-helper@v3
  14. # with:
  15. # actions: "remove-labels"
  16. # token: ${{ secrets.ACCESS_TOKEN }}
  17. # issue-number: ${{ github.event.issue.number }}
  18. # labels: "bug: pending triage"
  19. - name: needs reproduction
  20. if: github.event.label.name == 'needs reproduction'
  21. uses: actions-cool/issues-helper@v3
  22. with:
  23. actions: "create-comment, remove-labels"
  24. token: ${{ secrets.ACCESS_TOKEN }}
  25. issue-number: ${{ github.event.issue.number }}
  26. body: |
  27. Hello @${{ github.event.issue.user.login }}. Please provide the complete reproduction steps and code. Issues labeled by `needs reproduction` will be closed if no activities in 3 days.
  28. labels: "bug: pending triage"