reply-bot.yaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # Reply Bot
  2. # It uses the configuration in .github/label-commenter-config.yaml
  3. # See https://github.com/peaceiris/actions-label-commenter
  4. name: Reply-Bot
  5. on:
  6. issues:
  7. types: [labeled]
  8. discussion:
  9. types: [labeled]
  10. permissions:
  11. contents: read
  12. issues: write
  13. pull-requests: write
  14. discussions: write
  15. jobs:
  16. comment:
  17. runs-on: ubuntu-20.04
  18. steps:
  19. - uses: actions/checkout@v3
  20. ####################################################################
  21. ## Remove labels again (issues only)
  22. ## Make sure to also add the reply message to .github/label-commenter-config.yaml!
  23. ## This currently seems no longer to work due to changes on the actions-cool/issues-helper!
  24. ####################################################################
  25. # - name: Remove 'Logfile' label again (issues only)
  26. # if: github.event.label.name == 'bot-reply Logfile'
  27. # uses: actions-cool/issues-helper@v3
  28. # with:
  29. # actions: 'remove-labels'
  30. # labels: 'bot-reply Logfile'
  31. #
  32. # - name: Remove 'Web Console' label again (issues only)
  33. # if: github.event.label.name == 'bot-reply Web Console'
  34. # uses: actions-cool/issues-helper@v3
  35. # with:
  36. # actions: 'remove-labels'
  37. # labels: 'bot-reply Web Console'
  38. #
  39. # - name: Remove 'Properly Format Code' label again (issues only)
  40. # if: github.event.label.name == 'bot-reply Properly Format Code'
  41. # uses: actions-cool/issues-helper@v3
  42. # with:
  43. # actions: 'remove-labels'
  44. # labels: 'bot-reply Properly Format Code'
  45. #
  46. # - name: Remove 'Web Installer' label again (issues only)
  47. # if: github.event.label.name == 'bot-reply Web Installer'
  48. # uses: actions-cool/issues-helper@v3
  49. # with:
  50. # actions: 'remove-labels'
  51. # labels: 'bot-reply Web Installer'
  52. #
  53. # - name: Remove 'Rolling Build' label again (issues only)
  54. # if: github.event.label.name == 'bot-reply Rolling Build'
  55. # uses: actions-cool/issues-helper@v3
  56. # with:
  57. # actions: 'remove-labels'
  58. # labels: 'bot-reply Rolling Build'
  59. #
  60. # - name: Remove 'Show Trained Digits/Pointers' label again (issues only)
  61. # if: github.event.label.name == 'bot-reply Show Trained Digits/Pointers'
  62. # uses: actions-cool/issues-helper@v3
  63. # with:
  64. # actions: 'remove-labels'
  65. # labels: 'bot-reply Show Trained Digits/Pointers'
  66. ####################################################################
  67. ## Write the response
  68. ####################################################################
  69. - name: Write Response
  70. uses: peaceiris/actions-label-commenter@v1
  71. with:
  72. github_token: "${{ secrets.GITHUB_TOKEN }}"
  73. config_file: .github/label-commenter-config.yaml