From 3d50d8f12a0c2a9fe395bf996d862a62e5df2a49 Mon Sep 17 00:00:00 2001 From: Bob Yantosca Date: Mon, 22 Apr 2024 13:36:19 -0400 Subject: [PATCH] Now use the "stale" GitHub action instead of StaleBot .github/no-response.yml .github/stale.yml - Removed .github/workflows/stale.yml - Configuration file for GitHub "stale" action, which replaces StaleBot. Use the most recent list of issue/PR labels to never be marked stale. CHANGELOG.md - Updated accordingly Signed-off-by: Bob Yantosca --- .github/no-response.yml | 13 ------------- .github/stale.yml | 19 ------------------- .github/workflows/stale.yml | 38 +++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 6 ++++++ 4 files changed, 44 insertions(+), 32 deletions(-) delete mode 100644 .github/no-response.yml delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/no-response.yml b/.github/no-response.yml deleted file mode 100644 index dd2b8cfed..000000000 --- a/.github/no-response.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Configuration for probot-no-response - https://github.com/probot/no-response - -# Number of days of inactivity before an Issue is closed for lack of response -daysUntilClose: 14 -# Label requiring a response -responseRequiredLabel: more information needed -# Comment to post when closing an Issue for lack of response. Set to `false` to disable -closeComment: > - This issue has been automatically closed because there has been no response - to our request for more information from the original author. With only the - information that is currently in the issue, we don't have enough information - to take action. Please reach out if you have or find the answers we need so - that we can investigate further. diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 7011576b3..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 30 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - never stale - - feature - - discussion -# Label to use when marking an issue as stale -staleLabel: stale -# 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. If there are no updates within 7 days it will be closed. - You can add the "never stale" tag to prevent the Stale bot from closing - this issue. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: Closing due to inactivity diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..b14b1f621 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,38 @@ +# This workflow warns and then closes issues that have had no activity for a specified amount of time. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/actions/stale +name: Mark stale issues + +on: + schedule: + - cron: '0 0 * * *' # Run every night at midnight + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-label: 'stale' + exempt-issue-labels: + - 'category: Discussion' + - 'category: Feature Request' + - 'deferred' + - 'help needed: Open Research Problem' + - 'help needed: Request Input from Community' + - 'never stale' + - 'TODO: Documentation' + days-before-issue-stale: 30 + days-before-issue-close: 7 + stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. If there are no updates within 7 days it will be closed. You can add the "never stale" tag to prevent the issue from closing this issue.' + close-issue-message: 'Closing due to inactivity' + days-before-pr-stale: -1 + days-before-pr-close: -1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3319dca13..ea674e3c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,10 +8,16 @@ This file documents all notable changes to the GCHP wrapper repository starting The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] - TBD +### Added +- GitHub Action config file `.github/workflows/stale.yml`, which replaces StaleBot + ### Changed - Updated GEOS-Chem submodule to 14.4.0 - Updated HEMCO submodule to 3.9.0 +### Removed +- GitHub config files `.github/stale.yml` and `.github/no-response.yml` + ## [14.3.1] - 2024-04-02 ### Added - Now print container name being read by ExtData when `CAP.EXTDATA` is set to `DEBUG` in `logging.yml`