-
Notifications
You must be signed in to change notification settings - Fork 290
29 lines (27 loc) · 1.17 KB
/
close_stale_issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: 'Close stale issues'
on:
schedule:
- cron: '0 4 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Load token from 1Password
id: onepw_secrets
uses: 1password/load-secrets-action@v1
with:
export-env: true # Export loaded secrets as environment variables
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
CREDENTIALS: "op://rbiv7rvkkrsdlpcrz3bmv7nmcu/ifkeehu5gzi7wy5ub5qvwkaire/credential"
- name: Close stale issues
uses: actions/[email protected]
with:
repo-token: ${{ env.CREDENTIALS }}
operations-per-run: 100
days-before-stale: 120
days-before-close: 60
stale-issue-message: 'This discussion has been automatically marked as stale because it has not had recent activity. It will be closed in 60 days if no further activity occurs. Thank you for your contributions.'
stale-issue-label: 'stale'
exempt-pr-labels: 'v3.0'
close-issue-message: 'This discussion has been closed due to inactivity. Discussions can always be reopened after they have been closed.'