From ebbc30e2c450b2e48588ab7e8ce7baae05876bed Mon Sep 17 00:00:00 2001 From: Mateusz Redzynia Date: Tue, 10 Jun 2025 14:29:37 +0000 Subject: [PATCH] close-stale: close stale issues with workflow Add workflow to close stale issues. Workflow will first mark the issue as stale if there is no activity for 60 days, and close it after the next 14 days if no action is taken. Signed-off-by: Mateusz Redzynia --- .github/workflows/close-stale.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/close-stale.yml diff --git a/.github/workflows/close-stale.yml b/.github/workflows/close-stale.yml new file mode 100644 index 000000000000..4f4266faf892 --- /dev/null +++ b/.github/workflows/close-stale.yml @@ -0,0 +1,29 @@ +--- +name: "Close stale issues" +on: + schedule: + - cron: "30 1 * * *" + +permissions: + contents: read + +jobs: + stale: + name: Find stale issues + runs-on: ubuntu-24.04 + if: github.repository == 'thesofproject/sof' + permissions: + issues: write + + steps: + - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0 + with: + stale-issue-message: 'This issue has been marked as stale because it has been open (more + than) 60 days with no activity. Remove the stale label or add a comment saying that you + would like to have the label removed otherwise this issue will automatically be closed + in 14 days. Note, that you can always re-open a closed issue at any time.' + days-before-stale: 60 + days-before-close: 14 + stale-issue-label: 'stale' + exempt-issue-labels: 'metabug,in progress,enhancement' + operations-per-run: 400