Close stale issues or PRs #894
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 or PRs" | |
# Both `issue_comment` and `scheduled` event types are required for this Action | |
# to work properly. | |
on: | |
issue_comment: | |
types: [created] | |
schedule: | |
- cron: "30 1 * * *" | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v5 | |
with: | |
days-before-stale: 14 | |
days-before-close: 7 | |
exempt-all-milestones: true | |
close-issue-reason: not_planned | |
only-labels: "❔ User Input" | |
labels-to-remove-when-unstale: "❔ User Input,💤 Stale" | |
stale-issue-label: "💤 Stale" | |
stale-pr-label: "💤 Stale" | |
stale-issue-message: | | |
It looks like there hasn't been any recent updates on | |
this issue. If you created this issue and no longer | |
consider it to get merged, then please login to github | |
and close it. Otherwise, if there is no further activity | |
on this issue, it will be automatically closed within the | |
next 7 days. | |
*PS: I'm just an automated script, not a real human.* | |
stale-pr-message: | | |
It looks like there hasn't been any recent updates on | |
this pull request. If you created this pull request and | |
no longer consider it to get merged, then please login | |
to github and close it. Otherwise, if there is no further | |
activity on this pull request, it will be automatically | |
closed within the next 7 days. | |
*PS: I'm just an automated script, not a real human.* |