Skip to content

Commit

Permalink
feat: add stale workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Jun 25, 2024
1 parent 30e3e58 commit 782f4c9
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions templates/.github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "Close stale issues and PRs"

on:
workflow_dispatch:
schedule:
- cron: "30 1 * * *"

permissions:
contents: write
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
days-before-issue-stale: 30
days-before-issue-close: 15
days-before-pr-stale: 60
days-before-pr-close: 60

stale-issue-label: "stale:discard"
exempt-issue-labels: "stale:keep"
stale-issue-message: >
This issue has been automatically marked as "stale:discard". We are sorry that we haven't been able to
prioritize it yet.
If this issue still relevant, please leave any comment if you have any new additional information that
helps to solve this issue. We encourage you to create a pull request, if you can. We are happy to help you
with that.
close-issue-message: >
Closing this issue after a prolonged period of inactivity. If this issue is still relevant, feel free to
re-open the issue. Thank you!
stale-pr-label: "stale:discard"
exempt-pr-labels: "stale:keep"
stale-pr-message: >
This pull request has been automatically marked as "stale:discard". **If this pull request is still
relevant, please leave any comment** (for example, "bump"), and we'll keep it open. We are sorry that we
haven't been able to prioritize reviewing it yet.
Your contribution is very much appreciated!.
close-pr-message: >
Closing this pull request after a prolonged period of inactivity. If this issue is still relevant, please
ask for this pull request to be reopened. Thank you!

0 comments on commit 782f4c9

Please sign in to comment.