Skip to content

Commit

Permalink
ci: add stale workflow for managing inactive issues and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
satnaing authored Dec 28, 2024
1 parent 75cdad4 commit 3470228
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Close inactive issues/PR

on:
schedule:
- cron: '38 18 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: 15
days-before-issue-close: 15
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 15 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 15 days since being marked as stale."
days-before-pr-stale: 23
days-before-pr-close: 7
stale-pr-label: "stale"
stale-pr-message: "This PR is stale because it has been open for 23 days with no activity."
close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale."

0 comments on commit 3470228

Please sign in to comment.