Skip to content

Commit

Permalink
Implement workflow to monitor stale issues/PRs (#1283)
Browse files Browse the repository at this point in the history
* Create inactivity.yml

* Update inactivity.yml

* Apply suggestions from code review

Co-authored-by: Claudia Comito <[email protected]>

* Update .github/workflows/inactivity.yml

Co-authored-by: Claudia Comito <[email protected]>

---------

Co-authored-by: Claudia Comito <[email protected]>
  • Loading branch information
mtar and ClaudiaComito authored Nov 30, 2023
1 parent 8b87890 commit aa24cc6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/inactivity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Close inactive issues
on:
schedule:
- cron: "30 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: 60
days-before-issue-close: 60
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 60 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 60 days since being marked as stale."
days-before-pr-stale: 60
days-before-pr-close: 60
stale-pr-label: "stale"
stale-pr-message: "This pull request is stale because it has been open for 60 days with no activity."
close-pr-message: "This pull request was closed because it has been inactive for 60 days since being marked as stale."
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit aa24cc6

Please sign in to comment.