diff --git a/.github/no-response.yml b/.github/no-response.yml deleted file mode 100644 index dd2b8cf..0000000 --- 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 7011576..0000000 --- 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/build-test-environment.yml b/.github/workflows/build-test-environment.yml deleted file mode 100644 index b3efb37..0000000 --- a/.github/workflows/build-test-environment.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -# -# GitHub action to build the GCPy test environment with micromamba -# See: https://github.com/marketplace/actions/setup-micromamba -# -name: build-test-environment - -on: - push: - branches: [ "main", "dev" ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main", "dev" ] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.9"] - steps: - - name: Checkout the GCPy repository - uses: actions/checkout@v4 - - name: Create "testing" environment - uses: mamba-org/setup-micromamba@v1 - with: - micromamba-version: 'latest' - environment-file: docs/environment_files/testing.yml - init-shell: bash - cache-environment: false - generate-run-shell: true - post-cleanup: 'all' - - name: Test if "import gcpy" works - run: python -c "import gcpy" - shell: micromamba-shell {0} - - name: Test if we can create a plot - run: python -m gcpy.examples.plotting.create_test_plot - shell: micromamba-shell {0} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 7a13f5e..b14b1f6 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,17 +1,17 @@ -# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. +# 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 and pull requests +name: Mark stale issues on: schedule: - # Job will run at midnight on the 1st of each month (POSIX time syntax) - - cron: '0 0 1 * *' + - cron: '0 0 * * *' # Run every night at midnight jobs: stale: + runs-on: ubuntu-latest permissions: issues: write @@ -21,12 +21,18 @@ jobs: - uses: actions/stale@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - # Stale issue settings - days-before-issue-stale: 30 - days-before-issue-close: 30 stale-issue-label: 'stale' - stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity.' - close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale." - # Never mark PRs as 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 9d6bd95..ab8370d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Added fixed level budget diagnostic to budget operations table - Function `rename_speciesconc_to_speciesconcvv` in `gcpy/benchmark/modules/benchmark_utils.py` - Function `copy_file_to_dir` in `gcpy/util.py`. This is a wrapper for `shutil.copyfile`. - +- GitHub Action config file `.github/workflows/stale.yml`, which replaces StaleBot + ### Changed - Bump pip from 23.2.1 to 23.3 (dependabot suggested this) - Bump pypdf from 3.16.1 to 3.17.0 (dependabot suggested this) @@ -39,7 +40,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Benchmark functions now call `rename_speciesconc_to_speciesconcvv` - Create radionuclide, STE flux, and mass conservation tables for Ref and Dev versions in TransportTracers benchmarks - Use new function `copy_file_to_dir` to copy the benchmark script and configuration file to the benchmark results folders - +- Updated GitHub stalebot config file `stale.yml` with new issue/PR labels that should not go stale + ### Fixed - CS inquiry functions in `gcpy/cstools.py` now work properly for `xr.Dataset` and `xr.DataArray` objects - Prevent an import error by using `seaborn-v0_8-darkgrid` in`gcpy/benchmark/modules/benchmark_models_vs_obs.py` @@ -58,6 +60,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Environment file `docs/environment_files/environment.yml` - Environment file `docs/environment_files/requirements.txt` - Removed `awscli` from the GCPy environment; version 2 is no longer available on conda-forge or PyPi +- GitHub config files `.github/stale.yml` and `.github/no-response.yml` ## [1.4.2] - 2024-01-26 ### Added