2020-09-25 14:40:01 +08:00
|
|
|
name: "Close stale issues"
|
|
|
|
on:
|
|
|
|
schedule:
|
2020-09-25 15:00:41 +08:00
|
|
|
- cron: "20 0 * * *"
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
debug-only:
|
|
|
|
description: 'In debug mod'
|
|
|
|
required: false
|
|
|
|
default: 'false'
|
2022-10-31 15:46:46 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-09-25 14:40:01 +08:00
|
|
|
jobs:
|
|
|
|
stale:
|
2022-10-31 15:46:46 +08:00
|
|
|
permissions:
|
|
|
|
issues: write # for actions/stale to close stale issues
|
|
|
|
pull-requests: write # for actions/stale to close stale PRs
|
2020-09-25 14:40:01 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-01-25 11:38:19 +08:00
|
|
|
- uses: actions/stale@v9
|
2020-09-25 14:40:01 +08:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
2024-01-25 11:38:19 +08:00
|
|
|
stale-issue-message: 'Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.'
|
|
|
|
stale-pr-message: "PRs go stale after 21d of inactivity. Stale PRs rot after an additional 7d of inactivity and eventually close."
|
2020-09-25 15:00:41 +08:00
|
|
|
stale-issue-label: 'lifecycle/stale'
|
2020-09-25 15:15:29 +08:00
|
|
|
exempt-issue-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned'
|
2020-09-25 15:00:41 +08:00
|
|
|
stale-pr-label: 'lifecycle/stale'
|
2020-09-25 15:15:29 +08:00
|
|
|
exempt-pr-labels: 'bug,doc,enhancement,future,proposal,question,testing,todo,easy,help wanted,assigned'
|
2024-01-25 11:38:19 +08:00
|
|
|
days-before-stale: 21
|
2021-08-04 10:51:18 +08:00
|
|
|
days-before-close: 7
|
2020-09-25 15:00:41 +08:00
|
|
|
debug-only: ${{ github.event.inputs.debug-only }}
|
2022-03-15 11:53:14 +08:00
|
|
|
exempt-all-pr-milestones: true
|
|
|
|
exempt-all-pr-assignees: true
|