Mark stale issues and pull requests #818
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mark stale issues and pull requests | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
permissions: | |
contents: read | |
jobs: | |
stale: | |
permissions: | |
issues: write # for actions/stale to close stale issues | |
pull-requests: write # for actions/stale to close stale PRs | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
# SS220 EDIT BEGIN CHANGE | |
# stale-pr-message: "This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself." | |
# days-before-stale: 7 | |
# days-before-close: 7 | |
stale-pr-message: "Ваш PR был неактивен достаточно долгое время, поэтому был автоматически помечен как устаревший. Он будет закрыт через 30 дней. Если у Вас все готово к слиянию с главной веткой, то проинформируйте об этом владельцев репозитория." | |
days-before-stale: 10 | |
days-before-close: 30 | |
# SS220 EDIT END CHANGE | |
stale-pr-label: 'Stale' | |
days-before-issue-stale: -1 | |
stale-issue-label: 'Cleanup Flagged' | |
remove-issue-stale-when-updated: false | |
exempt-pr-labels: 'Good First PR,Upstream PR Merged,Stale-b-gone,Test Merged' | |
operations-per-run: 300 |