Skip to content

Stale pull-requests #770

Stale pull-requests

Stale pull-requests #770

Workflow file for this run

# See https://github.com/actions/stale
name: Stale 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 == 'metoppv/improver'"
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-issue-stale: -1
days-before-pr-stale: 60
# Idle number of days before closing stale issues/prs.
days-before-issue-close: -1
days-before-pr-close: 30
# Comment on the staled prs.
stale-pr-message: |
In order to maintain a backlog of relevant PRs, we automatically label them as stale after 60 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 30 days time.
# Comment on the staled prs while closed.
close-pr-message: |
This stale PR has been automatically closed due to a lack of activity.
If you still care about this PR, then please re-open this PR.
# Label to apply on staled prs.
stale-pr-label: Stale
# Labels on prs exempted from stale.
exempt-pr-labels:
"good first issue"
# 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