From f8a6bd3bf6513fe30698ee7153d5d052fc07c823 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 6 Jun 2025 12:15:20 +0200 Subject: [PATCH] chore(github): add `stale` workflow --- .github/workflows/reproduction.yml | 25 +++++++++++++++++++++++++ .github/workflows/stale.yml | 28 +++++++++++++++++++--------- 2 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/reproduction.yml diff --git a/.github/workflows/reproduction.yml b/.github/workflows/reproduction.yml new file mode 100644 index 00000000..bb37f0ed --- /dev/null +++ b/.github/workflows/reproduction.yml @@ -0,0 +1,25 @@ +name: reproduction + +on: + schedule: + - cron: '30 1 * * *' + +jobs: + reproduction: + runs-on: ubuntu-latest + + permissions: + issues: write + + steps: + - uses: actions/stale@v9 + with: + days-before-stale: -1 # Issues and PR will never be flagged stale automatically. + stale-issue-label: 'needs reproduction' # Label that flags an issue as stale. + only-labels: 'needs reproduction' # Only process these issues + days-before-issue-close: 7 + ignore-updates: true + remove-stale-when-updated: false + close-issue-message: This issue was closed because it was open for 7 days without a reproduction. + close-issue-label: closed-by-bot + operations-per-run: 300 #default 30 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 69563a54..9a1febfb 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -14,12 +14,22 @@ jobs: steps: - uses: actions/stale@v9 with: - days-before-stale: -1 # Issues and PR will never be flagged stale automatically. - stale-issue-label: 'needs reproduction' # Label that flags an issue as stale. - only-labels: 'needs reproduction' # Only process these issues - days-before-issue-close: 7 - ignore-updates: true - remove-stale-when-updated: false - close-issue-message: This issue was closed because it was open for 7 days without a reproduction. - close-issue-label: closed-by-bot - operations-per-run: 300 #default 30 + days-before-pr-stale: -1 + days-before-stale: 60 + days-before-close: 7 + stale-issue-label: 'stale' + close-issue-label: 'closed-by-bot' + close-issue-message: | + Hi! 👋 + + This issue has been automatically **closed** due to prolonged inactivity. + + We're a small team and can't address every report, but we appreciate your feedback and contributions. + + If this issue is still relevant with the latest version of Nuxt UI, please feel free to reopen or create a new issue with updated details. + + Thank you for your understanding and support! + + — Nuxt UI Team + exempt-issue-labels: 'feature,announcement' + operations-per-run: 300 \ No newline at end of file