response.yml 949 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: no_response
  2. on:
  3. schedule:
  4. - cron: '30 1 * * *' # Run every day at 01:30
  5. workflow_dispatch:
  6. issue_comment:
  7. jobs:
  8. close:
  9. if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
  10. runs-on: ubuntu-latest
  11. permissions:
  12. issues: write
  13. pull-requests: write
  14. steps:
  15. - uses: actions/checkout@v4
  16. - uses: actions/github-script@v7
  17. with:
  18. script: |
  19. const script = require('./.github/scripts/close_unresponsive.js')
  20. await script({github, context})
  21. remove_label:
  22. if: github.event_name == 'issue_comment'
  23. runs-on: ubuntu-latest
  24. permissions:
  25. issues: write
  26. pull-requests: write
  27. steps:
  28. - uses: actions/checkout@v4
  29. - uses: actions/github-script@v7
  30. with:
  31. script: |
  32. const script = require('./.github/scripts/remove_response_label.js')
  33. await script({github, context})