Skip to content

Close stale issues and PR #466

Close stale issues and PR

Close stale issues and PR #466

Workflow file for this run

---
name: "Close stale issues and PR"
on:
workflow_dispatch:
schedule:
- cron: "30 1 * * *" # https://crontab.guru/#30_1_*_*_* (everyday at 0130)
permissions:
contents: read
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
with:
egress-policy: audit
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
with:
operations-per-run: 200
ascending: true
delete-branch: true
stale-issue-message: >
This issue is stale because it has been open 10 days with no activity.
Replace the `no-issue-activity` label with a `work-in-progress` label or comment or
this will be closed in 5 days.
close-issue-message: >
This issue was closed because it has been stalled for 5 days with no activity.
days-before-issue-stale: 10
days-before-issue-close: 5
stale-issue-label: "no-issue-activity"
exempt-issue-labels: "awaiting-approval,work-in-progress,keep"
stale-pr-message: >
This PR is stale because it has been open 20 days with no activity.
Replace the `no-pr-activity` label with a `work-in-progress` label or comment or
this will be closed in 5 days.
close-pr-message: >
This PR was closed because it has been stalled for 5 days with no activity.
days-before-pr-stale: 20
days-before-pr-close: 5
stale-pr-label: "no-pr-activity"
exempt-pr-labels: "awaiting-approval,work-in-progress,dependencies,keep"
exempt-pr-assignees: "snyk-github"