Stale issues and pull-requests #459
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
# See https://github.com/actions/stale | |
name: Stale issues and pull-requests | |
on: | |
schedule: | |
# Run once a day | |
# N.B. "should" be quoted, according to | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onschedule | |
- cron: "0 0 * * *" | |
jobs: | |
stale: | |
if: "github.repository == 'SciTools/iris'" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
# Idle number of days before marking issues/prs stale. | |
days-before-stale: 500 | |
# Idle number of days before closing stale issues/prs. | |
days-before-close: 28 | |
# Comment on the staled issues. | |
stale-issue-message: | | |
In order to maintain a backlog of relevant issues, we automatically label them as stale after 500 days of inactivity. | |
If this issue is still important to you, then please comment on this issue and the stale label will be removed. | |
Otherwise this issue will be automatically closed in 28 days time. | |
# Comment on the staled prs. | |
stale-pr-message: | | |
In order to maintain a backlog of relevant PRs, we automatically label them as stale after 500 days of inactivity. | |
If this PR is still important to you, then please comment on this PR and the stale label will be removed. | |
Otherwise this PR will be automatically closed in 28 days time. | |
# Comment on the staled issues while closed. | |
close-issue-message: | | |
This stale issue has been automatically closed due to a lack of community activity. | |
If you still care about this issue, then please either: | |
* Re-open this issue, if you have sufficient permissions, or | |
* Add a comment stating that this is still relevant and someone will re-open it on your behalf. | |
# Comment on the staled prs while closed. | |
close-pr-message: | | |
This stale PR has been automatically closed due to a lack of community activity. | |
If you still care about this PR, then please either: | |
* Re-open this PR, if you have sufficient permissions, or | |
* Add a comment pinging `@SciTools/iris-devs` who will re-open on your behalf. | |
# Label to apply on staled issues. | |
stale-issue-label: Stale | |
# Label to apply on staled prs. | |
stale-pr-label: Stale | |
# Labels on issues exempted from stale. | |
exempt-issue-labels: | |
"Status: Blocked,Status: Decision Required,Peloton 🚴♂️,Good First Issue, Dragon 🐉, Dragon Sub-Task 🦎, Release: Major" | |
# Labels on prs exempted from stale. | |
exempt-pr-labels: | |
"Status: Blocked,Status: Decision Required,Peloton 🚴♂️,Good First Issue, Dragon 🐉, Dragon Sub-Task 🦎, Release: Major" | |
# Max number of operations per run. | |
operations-per-run: 300 | |
# Remove stale label from issues/prs on updates/comments. | |
remove-stale-when-updated: true | |
# Order to get issues/PRs. | |
ascending: true | |
# Exempt all issues/prs with milestones from stale. | |
exempt-all-milestones: true |