Close stale issues and pull requests #8
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: 'Close stale issues and pull requests' | |
on: | |
schedule: | |
- cron: '30 21 * * *' # 5:30 Beijing Time (GMT+8) | |
workflow_dispatch: | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v8 | |
with: | |
operations-per-run: 256 | |
exempt-issue-labels: 'long-term' # syntax: <label1>,<label2> | |
exempt-pr-labels: 'long-term' | |
# stale issue/pull request | |
stale-issue-message: "Hi, we're sending this friendly reminder because we haven't heard back from you in 30 days. We need more information about this issue to help address it. Please be sure to give us your input." | |
stale-issue-label: 'no-recent-activity' | |
stale-pr-message: "Hi, thank you for your interest in helping to improve the prompt flow experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment." | |
stale-pr-label: 'no-recent-activity' | |
days-before-issue-stale: 30 | |
days-before-pr-stale: 14 | |
# # close issue/pull request | |
# close-pr-message: 'Hi, thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out.' | |
# days-before-issue-close: 7 | |
# days-before-pr-close: 7 |