You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# run this workflow if the workflow definition gets changed within a PR
pull_request:
branches: ["main"]
paths: [".github/workflows/stale.yaml"]
env:
DAYS_BEFORE_PR_STALE: 7
DAYS_BEFORE_PR_CLOSE: 7
EXEMPT_PR_LABELS: "ignore-stale"
permissions:
issues: write
pull-requests: write
jobs:
stale:
name: "Stale"
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Mark old PRs as stale"
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: "This PR was marked as stale after ${{ env.DAYS_BEFORE_PR_STALE }} days of inactivity and will be closed after another ${{ env.DAYS_BEFORE_PR_CLOSE }} days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it."
close-pr-message: "This PR was closed automatically because it has been stalled for ${{ env.DAYS_BEFORE_PR_CLOSE }} days with no activity. Feel free to re-open it at any time."