Skip to content

Commit

Permalink
chore: Add the workflow that marks stale (#3257)
Browse files Browse the repository at this point in the history
* Add the workflow that marks stale

Signed-off-by: Jakub Balhar <[email protected]>

* Update texts for close

Update list of excluded labels

Signed-off-by: Jakub Balhar <[email protected]>

---------

Signed-off-by: Jakub Balhar <[email protected]>
Co-authored-by: Pablo Carle <[email protected]>
  • Loading branch information
balhar-jakub and pablocarle authored Jan 18, 2024
1 parent 57a201d commit ad45ec5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 */6 * * *'

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
# General rules applied to both, issues and pull requests (PRs)
start-date: "2022-07-30T00:00:00Z"
days-before-close: 14
days-before-stale: 90
exempt-all-assignees: true
exempt-all-milestones: true

# Rules applied to Issues
exempt-issue-labels: "Feature, bug, Priority: Critical, Priority: High, clarification, community-upvoted, security, keep"
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
close-issue-message: >
This issue has been automatically closed due to lack of activity. If you disagree, please comment on reason
why and reopen the issue
# Rules applied to PRs
exempt-pr-labels: "community-upvoted, clarification, security, keep"
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
close-pr-message: >
This pull request has been automatically closed due to lack of activity. If you disagree, please comment on
reason why and reopen pull request

0 comments on commit ad45ec5

Please sign in to comment.