From: Andrew Clayton Date: Wed, 4 Mar 2026 18:44:33 +0000 (+0000) Subject: GH: mark old issues & PRs as stale X-Git-Url: http://www.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=61c5178f04f71525be707d44e30f335dcf4e744d;p=nginx.git GH: mark old issues & PRs as stale Mark issues & pull-requests that have had no activity for a specified amount of time as stale. --- diff --git a/.github/workflows/mark-issues-prs-stale.yaml b/.github/workflows/mark-issues-prs-stale.yaml new file mode 100644 index 000000000..6b03535bd --- /dev/null +++ b/.github/workflows/mark-issues-prs-stale.yaml @@ -0,0 +1,27 @@ +name: Mark Stale Issues/Pull-Requests + +on: + schedule: + - cron: '22 2 * * *' # Run every day at 02:22 + +env: + STALE_DAYS: 90 + +jobs: + mark_stale_issues_prs: + runs-on: ubuntu-24.04 + permissions: + actions: write + issues: write + pull-requests: write + + name: Mark stale issues/pull-requests + steps: + - uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10 + with: + stale-pr-message: "This pull-request has been automatically marked 'stale' because it has been inactive for **${{ env.STALE_DAYS }}** days." + stale-issue-message: "This issue has been automatically marked 'stale' because it has been inactive for **${{ env.STALE_DAYS }}** days." + days-before-stale: ${{ env.STALE_DAYS }} + days-before-close: -1 + stale-pr-label: stale + stale-issue-label: stale