reply-bot.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Reply Bot
  2. # It uses the configuration in .github/label-commenter-config.yml
  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.yml!
  23. ####################################################################
  24. - name: Remove 'Logfile' label again (issues only)
  25. if: github.event.label.name == 'bot-reply Logfile'
  26. uses: actions-cool/issues-helper@v2
  27. with:
  28. actions: 'remove-labels'
  29. labels: 'bot-reply Logfile'
  30. - name: Remove 'Web Console' label again (issues only)
  31. if: github.event.label.name == 'bot-reply Web Console'
  32. uses: actions-cool/issues-helper@v2
  33. with:
  34. actions: 'remove-labels'
  35. labels: 'bot-reply Web Console'
  36. - name: Remove 'Properly Format Code' label again (issues only)
  37. if: github.event.label.name == 'bot-reply Properly Format Code'
  38. uses: actions-cool/issues-helper@v2
  39. with:
  40. actions: 'remove-labels'
  41. labels: 'bot-reply Properly Format Code'
  42. - name: Remove 'Web Installer' label again (issues only)
  43. if: github.event.label.name == 'bot-reply Web Installer'
  44. uses: actions-cool/issues-helper@v2
  45. with:
  46. actions: 'remove-labels'
  47. labels: 'bot-reply Web Installer'
  48. - name: Remove 'Rolling Build' label again (issues only)
  49. if: github.event.label.name == 'bot-reply Rolling Build'
  50. uses: actions-cool/issues-helper@v2
  51. with:
  52. actions: 'remove-labels'
  53. labels: 'bot-reply Rolling Build'
  54. - name: Remove 'Show Trained Digits/Pointers' label again (issues only)
  55. if: github.event.label.name == 'bot-reply Show Trained Digits/Pointers'
  56. uses: actions-cool/issues-helper@v2
  57. with:
  58. actions: 'remove-labels'
  59. labels: 'bot-reply Show Trained Digits/Pointers'
  60. ####################################################################
  61. ## Write the response
  62. ####################################################################
  63. - name: Write Response
  64. uses: peaceiris/actions-label-commenter@c2d00660c86f2b9ed0fb35b372c451558eba85b3
  65. with:
  66. repo-token: "${{ secrets.GITHUB_TOKEN }}"