issue-labeled.yml 1.0 KB

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