From 2624a86b18a2560b8622960effcfc40c3cb46b32 Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 19 Mar 2023 13:19:15 +0000 Subject: [PATCH] Adding stale-issue workflow Adding stale issue workflow to close and archive old issues. Dry-run first. --- .github/workflows/stale.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 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 000000000..ff620b895 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,46 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: '20 13 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + # DEBUG Only at first... + debug-only: true + operations-per-run: 50 + enable-statistics: true + remove-stale-when-updated: true + exempt-issue-labels: 'status:accepted,status:blocked,status:more-info-needed,status:milestone-required,Help Wanted' + exempt-all-milestones: true + stale-issue-label: 'Housekeeping:ToClose' + + days-before-stale: 60 + stale-issue-message: > + This issue has been marked as stale because there has been no recent activity on it. If there is + no further activity, it will be closed. The Open5GS team is a small but dedicated team with limited + resources and may not be able to address every issue directly. **Do not** attempt to circumvent this + by 'bumping' the issue; doing so will result in it's immediate closure and possibly your exclusion + from participating in any future discussions. + stale-pr-message: > + As there has been no recent activity on this PR, it has been marked as stale. It will be automatically + closed if no further action is taken. + + + days-before-close: 30 + days-before-pr-close: -1 + close-issue-message: > + This issue has been closed automatically due to lack of activity. This has been done to try + and reduce the amount of noise. Please do not comment any further. The Open5GS Team may choose to + re-open this issue if necessary. + close-pr-message: > + This PR has been closed due to an absence of activity.