Skip to content

Commit

Permalink
Adding stale issues workflow (#3528)
Browse files Browse the repository at this point in the history
* Extending the stale issues from redis-py

* Update .github/workflows/stale-issues.yml

Co-authored-by: M Sazzadul Hoque <[email protected]>

* Update .github/workflows/stale-issues.yml

Co-authored-by: M Sazzadul Hoque <[email protected]>

---------

Co-authored-by: M Sazzadul Hoque <[email protected]>
  • Loading branch information
chayim and sazzad16 authored Jan 2, 2024
1 parent de87294 commit b0b044a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Close stale issues"
on:
schedule:
- cron: "0 0 * * *"

permissions: {}
jobs:
stale:
permissions:
issues: write # to close stale issues (actions/stale)
pull-requests: write # to close stale PRs (actions/stale)

runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is marked stale. It will be closed in 30 days if it is not updated.'
stale-pr-message: 'This pull request is marked stale. It will be closed in 30 days if it is not updated.'
days-before-stale: 365
days-before-close: 30
stale-issue-label: "stale"
stale-pr-label: "stale"
operations-per-run: 10
remove-stale-when-updated: false

0 comments on commit b0b044a

Please sign in to comment.