Skip to content

Commit de72049

Browse files
nikhilaravifacebook-github-bot
authored andcommitted
Create stale.yml (#721)
Summary: Github action to close issues/PRs that are not labelled with "enhancement" or "how-to" if they have not had any activity in 30 days. Pull Request resolved: #721 Reviewed By: bottler Differential Revision: D29309817 Pulled By: nikhilaravi fbshipit-source-id: 039f6d4f29e9d04c01f59d145317a34ad75026a5
1 parent 279f4a1 commit de72049

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/stale.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: '31 5 * * *'
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
15+
steps:
16+
- uses: actions/stale@v3
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
exempt-issue-labels: 'enhancement,how-to'
20+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
21+
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
22+
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
23+
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
24+
days-before-issue-stale: 30
25+
days-before-pr-stale: 45
26+
days-before-issue-close: 5
27+
days-before-pr-close: 10

0 commit comments

Comments
 (0)