您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
1016 B

  1. name: 'Close stale issues'
  2. on:
  3. schedule:
  4. - cron: '00 5 * * *'
  5. workflow_dispatch:
  6. jobs:
  7. stale:
  8. runs-on: ubuntu-latest
  9. permissions:
  10. issues: write
  11. pull-requests: write
  12. steps:
  13. - uses: actions/stale@v5
  14. with:
  15. repo-token: ${{ secrets.GITHUB_TOKEN }}
  16. days-before-close: 7
  17. days-before-stale: 7
  18. only-labels: 'needs-more-info'
  19. exempt-issue-labels: 'triage'
  20. close-issue-message: 'Closing this issue because it needs more information and has not had recent activity. Please re-open this issue if more details can be provided. Thanks!'
  21. stale-issue-label: 'inactive'
  22. stale-issue-message: 'This issue needs more information and has not had recent activity. Please provide the missing information or it will be closed in 7 days. Thanks!'
  23. labels-to-add-when-unstale: 'triage'