2022-09-08 08:53:52 +00:00
|
|
|
name: Check stale pull requests
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 12 * * *'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
issues: read
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
env:
|
|
|
|
BEFORE_STALE: 14
|
|
|
|
BEFORE_CLOSE: 7
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
stale:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-20 18:09:03 +00:00
|
|
|
- uses: actions/stale@v6
|
2022-09-08 08:53:52 +00:00
|
|
|
with:
|
2022-10-24 14:34:20 +00:00
|
|
|
debug-only: false
|
2022-09-08 08:53:52 +00:00
|
|
|
# disable issues
|
|
|
|
days-before-issue-stale: -1
|
|
|
|
days-before-issue-close: -1
|
|
|
|
stale-pr-message: |
|
|
|
|
This pull request is stale because it has been open for ${{ env.BEFORE_STALE }} days with no activity.
|
|
|
|
It will be closed in ${{ env.BEFORE_CLOSE }} days unless the `stale` label is removed.
|
|
|
|
close-pr-message: |
|
|
|
|
This pull request was closed due to a lack of activity for ${{ env.BEFORE_CLOSE }} days after it was stale.
|
|
|
|
stale-pr-label: stale
|
|
|
|
close-pr-label: closed-due-inactivity
|
|
|
|
days-before-pr-stale: ${{ env.BEFORE_STALE }}
|
|
|
|
days-before-pr-close: ${{ env.BEFORE_CLOSE }}
|
2022-10-24 14:34:20 +00:00
|
|
|
exempt-pr-labels: 'external contribution :star:,roadmap,epic'
|
2022-09-08 08:53:52 +00:00
|
|
|
exempt-draft-pr: true
|
|
|
|
exempt-all-milestones: true
|
|
|
|
remove-stale-when-updated: true
|
2022-10-24 14:34:20 +00:00
|
|
|
operations-per-run: 128
|