mirror of
https://github.com/timerring/bilive.git
synced 2026-05-06 13:30:13 +08:00
- Add enable-issue-pending-close: false to prevent stale action from closing issues - Comment out lock-threads action to disable issue/PR locking - Keep PR stale handling enabled (180 days) - Fixes issue where半年 issues were being automatically closed despite configuration
56 lines
2.7 KiB
YAML
56 lines
2.7 KiB
YAML
name: 'Close stale and lock closed issues and PRs'
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '30 1 * * *'
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
stale:
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# - uses: dessant/lock-threads@7de207be1d3ce97a9abe6ff1306222982d1ca9f9 # v5.0.1
|
|
# with:
|
|
# # Issue locking disabled
|
|
# # issue-inactive-days: 365 # 1 year
|
|
# # add-issue-labels: 'Outdated'
|
|
# # issue-comment: >
|
|
# # This issue has been automatically locked since there
|
|
# # has not been any recent activity after it was closed.
|
|
# # Please open a new issue for related bugs.
|
|
# pr-comment: >
|
|
# This pull request has been automatically locked since there
|
|
# has not been any recent activity after it was closed.
|
|
# Please open a new issue for related bugs.
|
|
- uses: actions/stale@28ca1036281a5ce5922ead5184a1bbf96e5fc984e # v9.0.0
|
|
with:
|
|
operations-per-run: 999
|
|
# Issue handling disabled
|
|
enable-issue-pending-close: false
|
|
enable-pr-pending-close: true
|
|
# days-before-issue-stale: 180 # 6 months
|
|
days-before-pr-stale: 180 # 6 months
|
|
# days-before-issue-close: 180 # 6 months
|
|
days-before-pr-close: 180 # 6 months
|
|
# stale-issue-message: >
|
|
# This issue has been automatically marked as stale because it has not had
|
|
# recent activity. The resources of team are limited, and so we are asking for your help.
|
|
#
|
|
# If this is a **bug** and you can still reproduce this error on the <code>main</code> branch, please reply with all of the information you have about it in order to keep the issue open.
|
|
#
|
|
# If this is a **feature request**, and you feel that it is still relevant and valuable, please tell us why.
|
|
#
|
|
# This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
|
|
stale-pr-message: This PR has been automatically marked as stale because it has not had
|
|
recent activity. The resources of the team are limited, and so we are asking for your help.
|
|
|
|
Please check and verify that this code contribution fits with the purpose of the project. If yes, tell is in a comment.
|
|
|
|
This PR will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
|
|
# stale-issue-label: 'Stale'
|
|
# exempt-issue-labels: 'Keep,Security'
|
|
stale-pr-label: 'Stale'
|
|
exempt-pr-labels: 'Keep,Security' |