Skip to content

Commit 37efe38

Browse files
cortinicofacebook-github-bot
authored andcommitted
Add stale action to close older issues/PR that are more than one year inactive (facebook#32403)
Summary: Pull Request resolved: facebook#32403 As the title says, we should cleanup issues that are really stale (i.e. more than one year inactive). I ended up using actions/stale which is the first party solution for this. Changelog: [Internal] [Changed] - Add stale GitHub action Reviewed By: hramos Differential Revision: D31653083 fbshipit-source-id: 48538a571183f9ff28a23e7d1fdd01980581de35
1 parent 6525f9b commit 37efe38

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/stale-bot.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Mark stale issues and pull requests
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
jobs:
6+
stale:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/stale@v4
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
days-before-stale: 365
16+
stale-issue-message: 'This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
17+
stale-pr-message: 'This PR is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
18+
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
19+
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.'

0 commit comments

Comments
 (0)