Skip to content
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
34 changes: 34 additions & 0 deletions .github/workflows/inactivity-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Mark inactive issues and PRs

on:
schedule:
- cron: "0 23 * * *" # every day at 23pm on default(main) branch
workflow_dispatch: # Allows manual trigger

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: $

# Issue settings
days-before-issue-stale: 90 # (~3 months)
days-before-issue-close: 10
stale-issue-label: inactive
stale-issue-message: >
This issue has been marked as inactive due to inactivity.
It will be closed if no further activity occurs in the next 10 days.
exempt-issue-labels: 'good first issue,help wanted,roadmap,known-issue'

# PR settings
days-before-pr-stale: 90 # (~3 months)
days-before-pr-close: 10
stale-pr-label: inactive
stale-pr-message: >
This PR has been marked as inactive due to inactivity.
It will be closed if no further activity occurs in the next 10 days.
exempt-pr-labels: 'autorelease: pending'

remove-stale-when-updated: true
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
- id: black
args: [--line-length=120]
- repo: https://github.com/pycqa/isort
rev: 7.0.0
rev: 8.0.1
hooks:
- id: isort
args:
Expand All @@ -41,7 +41,7 @@ repos:
- --profile black
- --project anemoi
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
rev: v0.15.4
hooks:
- id: ruff
args:
Expand All @@ -59,12 +59,12 @@ repos:
- id: docconvert
args: ["numpy"]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.12.1"
rev: "v2.16.2"
hooks:
- id: pyproject-fmt
args: ["--max-supported-python", "3.12"]
- repo: https://github.com/jshwi/docsig # Check docstrings against function sig
rev: v0.77.0
rev: v0.79.0
hooks:
- id: docsig
args:
Expand Down
Loading