Files
MaaAssistantArknights/.github/workflows/stale.yml
Constrat e2de008ef6 perf: increase operations to 800
[skip changelog]
2024-07-22 22:11:53 +02:00

36 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: "Inactive Issues auto close"
on:
schedule:
- cron: "0 */6 * * *" # Runs daily at midnight, temporarily runs every 6 hours for heavy workload
workflow_dispatch: # Allows manual triggering
jobs:
stale:
runs-on: ubuntu-latest
permissions:
actions: write # Workaround for https://github.com/actions/stale/issues/1090
issues: write
# Completely disable stalling for PRs
pull-requests: none
contents: none
steps:
- name: Close inactive issues
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30 # Number of days of inactivity before marking as stale
days-before-close: 3 # Number of days to wait after marking as stale before closing
stale-issue-label: "stale"
stale-issue-message: |
This issue has been inactive for a prolonged period and will be closed automatically in 3 days.
该问题已长时间处于闲置状态3 天后将自动关闭。
exempt-issue-labels: "keep-open, MAA Team"
days-before-pr-stale: -1 # Completely disable stalling for PRs
days-before-pr-close: -1 # Completely disable closing for PRs
# Temporary to reduce the huge issues number
ascending: true
operations-per-run: 800
debug-only: false