* chore: lower days-before-stale from 60 to 28 * Add CONTRIBUTING.md note regarding PRs being active
52 lines
1.9 KiB
YAML
52 lines
1.9 KiB
YAML
name: stale
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "30 1 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
stale:
|
|
if: ${{ github.repository == 'openchamber/openchamber' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate bot app token
|
|
id: app-token
|
|
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
|
|
with:
|
|
app-id: ${{ secrets.OC_REVIEW_APP_ID }}
|
|
private-key: ${{ secrets.OC_REVIEW_APP_PRIVATE_KEY }}
|
|
|
|
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
|
|
with:
|
|
repo-token: ${{ steps.app-token.outputs.token }}
|
|
days-before-stale: 28
|
|
days-before-close: 7
|
|
stale-issue-label: stale
|
|
stale-pr-label: stale
|
|
stale-issue-message: >
|
|
This issue has been automatically marked as stale because it has not had
|
|
any activity in the last 28 days. It will be closed in 7 days if no
|
|
further activity occurs.
|
|
close-issue-message: >
|
|
This issue has been automatically closed because it has been stale for
|
|
7 days with no activity. If this is still relevant, please comment or
|
|
reopen the issue.
|
|
stale-pr-message: >
|
|
This pull request has been automatically marked as stale because it has
|
|
not had any activity in the last 28 days. It will be closed in 7 days
|
|
if no further activity occurs.
|
|
close-pr-message: >
|
|
This pull request has been automatically closed because it has been
|
|
stale for 7 days with no activity. If this is still relevant, please
|
|
comment or reopen the pull request.
|
|
exempt-issue-labels: pinned,security,help wanted
|
|
exempt-pr-labels: pinned,security,help wanted
|
|
remove-stale-when-updated: true
|
|
labels-to-add-when-unstale: ""
|
|
operations-per-run: 100
|