Skip to content

Commit 48b958e

Browse files
author
nginx
committed
Pre OSS commit
1 parent 057a82c commit 48b958e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/stale.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: 'Close stale issues and PRs'
7+
on:
8+
schedule:
9+
- cron: '30 1 * * *' # run every day at 01:30 UTC
10+
11+
permissions: # added using https://github.com/step-security/secure-workflows
12+
contents: read
13+
14+
jobs:
15+
stale:
16+
permissions:
17+
issues: write # for actions/stale to close stale issues
18+
pull-requests: write # for actions/stale to close stale PRs
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/stale@1v8
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
stale-issue-message: 'This issue is stale because it has been open for 90 days with no activity. Remove the stale label or add a comment to keep it open. If you do not take action, this will be closed in 10 days.'
25+
stale-pr-message: 'This PR is stale because it has been open 90 days with no activity. Remove the stale label or add a comment to keep it open. If you do not take action, this will be closed in 10 days.'
26+
close-issue-message: 'This issue was closed after 100 days of inactivity.'
27+
close-pr-message: 'This PR was closed after 100 days of inactivity.'
28+
stale-issue-label: 'stale'
29+
stale-pr-label: 'stale'
30+
exempt-all-assignees: true
31+
exempt-issue-labels: 'proposal'
32+
operations-per-run: 100
33+
days-before-stale: 90
34+
days-before-close: 10

0 commit comments

Comments
 (0)