Skip to content

Commit 37d788b

Browse files
authored
Feature/stale bot (#36)
* feat: added stale bot * feat: added stale bot
1 parent 72a0b0f commit 37d788b

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/op-stale.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Close stale issues and PRs"
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *' # Runs every day at midnight
5+
6+
jobs:
7+
stale:
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
stale-issue-message: 'Thanks for opening this issue! To keep the project healthy, we close inactive issues after some time. There has not been any activity in the last 28 days - if you are still working on this or feel it should remain open, just leave a quick comment in the next 7 days to let us know where things are at. We really appreciate your input!'
17+
stale-pr-message: 'Thanks for raising this PR! To keep the project healthy, we close inactive PRs after some time. There has not been any activity in the last 28 days - if you are still working on this or feel it should remain open, just leave a quick comment in the next 7 days to let us know where things are at. We really appreciate your input!'
18+
close-issue-message: 'Closing this issue as it has been marked stale and has not received any updates in the past 7 days. If you are still working on this or believe it should be reopened, feel free to leave an update. Thanks again for contributing!'
19+
close-pr-message: 'Closing this PR as it has been marked stale and has not received any updates in the past 7 days. If you are still working on this or believe it should be reopened, feel free to leave an update. Thanks again for contributing!'
20+
stale-issue-label: 'stale'
21+
stale-pr-label: 'stale'
22+
exempt-pr-labels: 'dependencies'
23+
days-before-stale: 28
24+
days-before-close: 7

0 commit comments

Comments
 (0)