From dac72d134e53b4d24ca9e5580a043c8ade0a6c88 Mon Sep 17 00:00:00 2001 From: kietcoderlor Date: Thu, 30 Jul 2026 10:37:13 +0700 Subject: [PATCH 1/3] ci: add stale issue and PR cleanup workflow --- .github/workflows/stale.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..1d14a193 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,23 @@ +name: Stale Issue/PR Cleanup + +on: + schedule: + - cron: '30 1 * * *' + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-issue-stale: 60 + days-before-issue-close: 14 + days-before-pr-stale: 30 + days-before-pr-close: -1 + exempt-issue-labels: 'pinned,security' + exempt-pr-labels: 'pinned,security' From 7f095a7cfbbdb1b82f58d1373aa16142578c3306 Mon Sep 17 00:00:00 2001 From: kietcoderlor Date: Thu, 30 Jul 2026 10:37:30 +0700 Subject: [PATCH 2/3] ci: add stale issue and PR cleanup workflow --- .github/workflows/stale.yml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 1d14a193..e14639ce 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -11,13 +11,35 @@ permissions: jobs: stale: + name: Mark and close stale issues/PRs runs-on: ubuntu-latest + steps: - - uses: actions/stale@v9 + - name: Run stale action + uses: actions/stale@v9 with: + stale-issue-label: stale + stale-pr-label: stale + days-before-issue-stale: 60 days-before-issue-close: 14 days-before-pr-stale: 30 days-before-pr-close: -1 - exempt-issue-labels: 'pinned,security' - exempt-pr-labels: 'pinned,security' + + exempt-issue-labels: pinned,security + exempt-pr-labels: pinned,security + + remove-stale-when-updated: true + + stale-issue-message: > + This issue has been automatically marked as stale because it has not + had recent activity for 60 days. It will be closed in 14 days if no + further activity occurs. To keep it open, please comment or remove + the stale label. + stale-pr-message: > + This pull request has been automatically marked as stale because it + has not had recent activity for 30 days. To keep it active, please + comment or remove the stale label. + close-issue-message: > + This issue was closed because it remained stale for 14 days with no + further activity. \ No newline at end of file From 75e7f2bed592119eedeabe5dcf283e0943675020 Mon Sep 17 00:00:00 2001 From: kietcoderlor Date: Mon, 10 Aug 2026 11:59:42 +0700 Subject: [PATCH 3/3] chore: format stale workflow --- .github/workflows/stale.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e14639ce..07b58a2b 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,7 +2,7 @@ name: Stale Issue/PR Cleanup on: schedule: - - cron: '30 1 * * *' + - cron: "30 1 * * *" workflow_dispatch: permissions: @@ -11,7 +11,7 @@ permissions: jobs: stale: - name: Mark and close stale issues/PRs + name: Mark stale issues and pull requests runs-on: ubuntu-latest steps: @@ -42,4 +42,4 @@ jobs: comment or remove the stale label. close-issue-message: > This issue was closed because it remained stale for 14 days with no - further activity. \ No newline at end of file + further activity.