From d2c8921c9fe3501ddc61e6a4422ba36ba58b2c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Friedemann=20F=C3=BCrst?= <59653747+friedemannf@users.noreply.github.com> Date: Wed, 25 Feb 2026 23:44:06 +0100 Subject: [PATCH] Add PR stale action --- .github/workflows/stale.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..1691e336 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,27 @@ +## +# Workflow is triggered daily midnight UTC +# A PR with more than 60 days of inactivity will be marked as stale +# A PR that's stale for more than 7 days will be automatically closed +# Issues are exempt from auto marking as stale but issues with manually added 'stale' label are eligible for auto closure after 7 days. +# PRs with `exempt-pr-labels` or assignees are exempt from auto stale marking, it's the responsibility of the assignee to get the PR progressed either with review/merge or closure. +## +name: Manage stale issues and PRs + +on: + schedule: + - cron: "0 0 * * *" # Will be triggered every day at midnight UTC +permissions: {} +jobs: + stale-prs: + permissions: + actions: write + contents: write + issues: write + pull-requests: write + uses: smartcontractkit/.github/.github/workflows/reusable-stale-prs-issues.yml@217f5d6f10f04ebd56534dc2f2cd9b485fe45d88 # 2025-06-20 + with: + days-before-pr-stale: 60 # days + days-before-pr-close: 7 # days + operations-per-run: 200 # max number of API calls to use. + secrets: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}