Skip to content

Commit

Permalink
ci: mark issues and PRs as stale (#2554)
Browse files Browse the repository at this point in the history
### Description

<!--Add a description of your PR here-->

### QC
<!-- Make sure that you can tick the boxes below. -->

* [ ] The PR contains a test case for the changes or the changes are
already covered by an existing test case.
* [ ] The documentation (`docs/`) is updated to reflect the changes or
this is not necessary (e.g. if the change does neither modify the
language nor the behavior or functionalities of Snakemake).
  • Loading branch information
fgvieira committed May 3, 2024
1 parent 6df7046 commit e43cfe3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Close inactive issues
on:
schedule:
- cron: "00 1 1 * *"

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 180
days-before-issue-close: 365
stale-issue-label: "stale"
stale-issue-message: "This issue was marked as stale because it has been open for 6 months with no activity."
close-issue-message: "This issue was closed because it has been inactive for 1 year since being marked as stale. Feel free to re-open it if you have any further comments."
days-before-pr-stale: 180
days-before-pr-close: -1
stale-pr-message: "This PR was marked as stale because it has been open for 6 months with no activity."
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e43cfe3

Please sign in to comment.