issue-open.yml 993 B

123456789101112131415161718192021222324252627282930313233
  1. name: Issue Open Check
  2. on:
  3. issues:
  4. types: [opened, reopened]
  5. jobs:
  6. issue-open-add-labels:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Add labels
  10. uses: actions-cool/issues-helper@v2
  11. if: ${{ !github.event.comment.pull_request.pull_request }}
  12. with:
  13. actions: 'add-labels'
  14. labels: 'state/awaiting processing'
  15. - name: Remove require reply label
  16. uses: actions-cool/issues-helper@v2
  17. with:
  18. actions: 'remove-labels'
  19. labels: 'state/awaiting user feedback,stale'
  20. notify-author-comment:
  21. runs-on: ubuntu-latest
  22. steps:
  23. - name: feishu notify
  24. uses: zexi/action-issues-notify@v1
  25. with:
  26. url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
  27. issue_title: "${{ github.event.issue.user.login }} 提交了 issue: ${{ github.event.issue.title }}"
  28. issue_body: "${{ tojson(github.event.issue.body) }}"
  29. issue_link_url: "${{github.event.issue.html_url}}"