Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace stalebot with "stale" GitHub action #315

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/no-response.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/stale.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/build-test-environment.yml

This file was deleted.

26 changes: 16 additions & 10 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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`
Expand All @@ -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
Expand Down
Loading