Skip to content

Stale issues and pull-requests #478

Stale issues and pull-requests

Stale issues and pull-requests #478

Workflow file for this run

# 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/python-stratify'"
runs-on: ubuntu-latest
env:
DAYS_BEFORE_STALE: 500
DAYS_BEFORE_CLOSE: 28
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Idle number of days before marking issues/prs stale.
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
# Idle number of days before closing stale issues/prs.
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
# Comment on the staled issues.
stale-issue-message: |
In order to maintain a backlog of relevant issues, we automatically label them as stale after ${{ env.DAYS_BEFORE_STALE }} 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 ${{ env.DAYS_BEFORE_CLOSE }} 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 ${{ env.DAYS_BEFORE_STALE }} 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 ${{ env.DAYS_BEFORE_CLOSE }} 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 pinging `@SciTools/stratify-maintainers` who will re-open 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/stratify-maintainers` 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"
# Labels on prs exempted from stale.
exempt-pr-labels:
"Status: Blocked,Status: Decision Required"
# 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