Skip to content

Commit

Permalink
Merge pull request #2837 from glific/feature/stale
Browse files Browse the repository at this point in the history
Added stale option for PRs and issue
  • Loading branch information
mdshamoon authored Apr 2, 2024
2 parents bf2c6ca + c417317 commit b7ad99b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
# For more information, see: https://github.com/actions/stale
name: Close stale issues and PRs
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-label: "inactive"
stale-issue-message: "Without activity, this issue will be closed in 1 day."
close-issue-message: "This issue was closed for inactivity."
stale-pr-message: "Without activity, this PR will be closed in 1 day."
close-pr-message: "This PR was closed for inactivity."
stale-pr-label: "inactive"
days-before-pr-stale: 90
days-before-pr-close: 1
days-before-issue-stale: 90
days-before-issue-close: 1
exempt-all-assignees: true

0 comments on commit b7ad99b

Please sign in to comment.