Skip to content

Commit

Permalink
Mark issues and pull requests as stale (#6872)
Browse files Browse the repository at this point in the history
* Mark issues and pull requests as stale

Signed-off-by: Ritu Deshmukh <rideshmu@redhat.com>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

---------

Signed-off-by: Ritu Deshmukh <rideshmu@redhat.com>
Co-authored-by: Armel Soro <armel@rm3l.org>
  • Loading branch information
ritudes and rm3l authored Jun 9, 2023
1 parent 029c538 commit d892e8e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Mark and close stale issues and pull requests

# Please refer to https://github.com/actions/stale/blob/master/action.yml
# to see all config knobs of the stale action.

on:
schedule:
- cron: "0 0 * * *"

permissions:
contents: read

jobs:
stale:

permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'A friendly reminder that this issue had no activity for 90 days. Stale issues will be closed after an additional 30 days of inactivity.'
stale-pr-message: 'A friendly reminder that this PR had no activity for 90 days. Stale PRs will be closed after an additional 30 days of inactivity.'
stale-issue-label: 'lifecycle/stale'
close-issue-label: 'lifecycle/rotten'
exempt-issue-labels: 'lifecycle/active,lifecycle/frozen'
stale-pr-label: 'lifecycle/stale'
close-pr-label: 'lifecycle/rotten'
exempt-pr-labels: 'lifecycle/active,lifecycle/frozen'
days-before-stale: 90
days-before-close: 30
close-issue-message: "This issue was closed because it has been inactive for 30 days since being marked as stale."
close-pr-message: "This PR was closed because it has been inactive for 30 days since being marked as stale."
remove-stale-when-updated: true

0 comments on commit d892e8e

Please sign in to comment.