Skip to content

Close stale issues #411

Close stale issues

Close stale issues #411

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/stale@v5.2.1
with:
repo-token: ${{ env.CREDENTIALS }}
operations-per-run: 100
days-before-stale: 60
days-before-close: 30
stale-issue-message: 'This discussion has been automatically marked as stale because it has not had recent activity. It will be closed in 30 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.'