From 5f9ecba5e6a2932ff05b38ce78a272594988b89e Mon Sep 17 00:00:00 2001 From: Mateusz Redzynia Date: Thu, 11 Sep 2025 09:26:27 +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 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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 00000000000000..0f10c32d219960 --- /dev/null +++ b/.github/workflows/close-stale.yml @@ -0,0 +1,31 @@ +--- +name: "Close stale issues" + +# yamllint disable-line rule:truthy +on: + schedule: + - cron: "30 1 * * *" + +permissions: + contents: read + +jobs: + stale: + name: Find stale issues + runs-on: ubuntu-24.04 + if: github.repository == 'thesofproject/linux' + 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