2023-06-07 19:46:37 +03:00
|
|
|
name: "Close stale issues and PRs"
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *" # every day at 00:00 UTC
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
|
|
|
|
2023-12-31 11:10:25 +03:00
|
|
|
env:
|
|
|
|
STALE_LABEL: stale
|
|
|
|
EXEMPT_LABELS: "pending,planning,in progress"
|
|
|
|
MESSAGE: >
|
|
|
|
This conversation has been automatically marked as stale because it has not had recent activity.
|
|
|
|
It will be closed if no further activity occurs.
|
|
|
|
Thank you for your contributions.
|
|
|
|
|
2023-06-07 19:46:37 +03:00
|
|
|
jobs:
|
|
|
|
stale:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-01-01 22:52:24 +03:00
|
|
|
- uses: actions/stale@v9
|
2023-06-07 19:46:37 +03:00
|
|
|
with:
|
2024-02-05 02:28:35 +03:00
|
|
|
# 60 days before marking issues/PRs stale
|
|
|
|
days-before-close: -1 # does not close automatically
|
2023-12-31 11:10:25 +03:00
|
|
|
stale-issue-label: ${{ env.STALE_LABEL }}
|
|
|
|
exempt-issue-labels: ${{ env.EXEMPT_LABELS }}
|
|
|
|
stale-issue-message: ${{ env.MESSAGE }}
|
|
|
|
stale-pr-label: ${{ env.STALE_LABEL }}
|
|
|
|
exempt-pr-labels: ${{ env.EXEMPT_LABELS }}
|
|
|
|
stale-pr-message: ${{ env.MESSAGE }}
|