* this increases operation limit and allows the stale-old bot to mark issues as stale-old (and remove stale-old) labels daily, but doesn't allow it to automatically close stale-old issues

* exempt label testing

* stale-exempt label testing success

* made the scheduling for 12am and 1am PDT)
This commit is contained in:
snehara99 2023-10-19 17:20:03 -04:00 коммит произвёл GitHub
Родитель 15dc565945
Коммит dfdcd86dcb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 7 добавлений и 3 удалений

6
.github/workflows/close-old-issues.yml поставляемый
Просмотреть файл

@ -1,12 +1,16 @@
name: Close Old Issues name: Close Old Issues
on: on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch: workflow_dispatch:
inputs: inputs:
inactive-days: inactive-days:
description: "inactive-days: Specify how many days the issue has to have had no activity to get the 'stale-old' label." description: "inactive-days: Specify how many days the issue has to have had no activity to get the 'stale-old' label."
type: number
default: 720 default: 720
stale-label-days: stale-label-days:
description: "stale-label-days: Specify how many days the issue has to have had the 'stale-old' label to be closed. Must be >= 14 days or will default to -1 days (never)." description: "stale-label-days: Specify how many days the issue has to have had the 'stale-old' label to be closed. Must be >= 14 days or will default to -1 days (never)."
type: number
default: -1 default: -1
jobs: jobs:
stale: stale:
@ -27,4 +31,4 @@ jobs:
stale-issue-message: "This issue is now marked as '${{ env.stale-label }}' due to there being no activity on it for the past ${{ env.stale-days }} days. Unless the '${{ env.stale-label }}' label is removed or the issue is commented on, this will be remain open for at least 14 days and then it may be closed. If you would like to make this issue exempt from getting stale, please add the '${{ env.stale-exempt-label }}' label." stale-issue-message: "This issue is now marked as '${{ env.stale-label }}' due to there being no activity on it for the past ${{ env.stale-days }} days. Unless the '${{ env.stale-label }}' label is removed or the issue is commented on, this will be remain open for at least 14 days and then it may be closed. If you would like to make this issue exempt from getting stale, please add the '${{ env.stale-exempt-label }}' label."
days-before-close: ${{ env.close-days }} days-before-close: ${{ env.close-days }}
close-issue-message: "This issue is now closed due to there being no activity on it for the past ${{ env.close-days }} days since being marked as '${{ env.stale-label }}'." close-issue-message: "This issue is now closed due to there being no activity on it for the past ${{ env.close-days }} days since being marked as '${{ env.stale-label }}'."
operations-per-run: 200 operations-per-run: 500

4
.github/workflows/close-stale-issues.yml поставляемый
Просмотреть файл

@ -1,7 +1,7 @@
name: Close Stale Issues name: Close Stale Issues
on: on:
schedule: schedule:
- cron: "0 0 * * *" - cron: "0 7 * * *"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
stale: stale:
@ -24,5 +24,5 @@ jobs:
stale-issue-message: "This issue is now marked as '${{ env.stale-label }}' due to there being no activity on it for the past ${{ env.stale-days }} days and being labelled '${{ env.only-label }}'. Unless the '${{ env.stale-label }}' label is removed or the issue is commented on, this will be closed in ${{ env.close-days }} days. If you would like to make this issue exempt from getting stale, please remove the '${{ env.only-label }}' and '${{ env.stale-label }}' labels or add the '${{ env.stale-exempt-label }}' label" stale-issue-message: "This issue is now marked as '${{ env.stale-label }}' due to there being no activity on it for the past ${{ env.stale-days }} days and being labelled '${{ env.only-label }}'. Unless the '${{ env.stale-label }}' label is removed or the issue is commented on, this will be closed in ${{ env.close-days }} days. If you would like to make this issue exempt from getting stale, please remove the '${{ env.only-label }}' and '${{ env.stale-label }}' labels or add the '${{ env.stale-exempt-label }}' label"
days-before-close: ${{ env.close-days }} days-before-close: ${{ env.close-days }}
close-issue-message: "This issue is now closed due to there being no activity on it for the past ${{ env.close-days }} days since being marked as '${{ env.stale-label }}'." close-issue-message: "This issue is now closed due to there being no activity on it for the past ${{ env.close-days }} days since being marked as '${{ env.stale-label }}'."
operations-per-run: 200 operations-per-run: 500