From 7f12152cd0d4de2b25967a05daf68a068b96f563 Mon Sep 17 00:00:00 2001 From: Karsten Hassel Date: Fri, 4 Oct 2024 20:41:37 +0200 Subject: [PATCH] reactivated `stale.yaml` as github action --- .github/stale.yaml | 19 ------------------- .github/workflows/stale.yaml | 20 ++++++++++++++++++++ CHANGELOG.md | 2 ++ 3 files changed, 22 insertions(+), 19 deletions(-) delete mode 100644 .github/stale.yaml create mode 100644 .github/workflows/stale.yaml diff --git a/.github/stale.yaml b/.github/stale.yaml deleted file mode 100644 index 136532c1a7..0000000000 --- a/.github/stale.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 60 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security - - under investigation - - pr welcome -# Label to use when marking an issue as stale -staleLabel: wontfix -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000000..e2acfe8258 --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,20 @@ +name: "Close stale issues and PRs" + +on: + schedule: + - cron: "30 1 * * 6" # every Saturday at 1:30 + +permissions: + issues: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." + days-before-issue-stale: 60 + days-before-issue-close: 7 + stale-issue-label: "wontfix" + exempt-issue-labels: "pinned,security,under investigation,pr welcome" diff --git a/CHANGELOG.md b/CHANGELOG.md index 2abaa52e4e..ce55b0228d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ _This release is scheduled to be released on 2025-01-01._ ### Updated +- [repo] reactivated `stale.yaml` as github action to mark issues as stale after 60 days and close them 7 days later (if no activity) + ### Fixed - [updatenotification] Fix pm2 using detection when pm2 script is in MagicMirror root folder (#3576)