add new workflow for stale issues (#513)

* add new workflow for stale issues

* add triage labels

* update localize string
This commit is contained in:
Garrett Campbell 2023-10-12 09:05:15 -04:00 коммит произвёл GitHub
Родитель 7af7c287eb
Коммит cef4a663bf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 48 добавлений и 2 удалений

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

@ -0,0 +1,27 @@
name: Handling stale issues
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
env:
stale-days: 30
close-days: 14
stale-label: stale
only-label: more info needed
steps:
- uses: actions/stale@v4.1.1
with:
stale-issue-label: ${{ env.stale-label }}
only-labels: ${{ env.only-label }}
days-before-pr-stale: -1
days-before-pr-close: -1
days-before-stale: ${{ env.stale-days }}
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 labeled '${{ 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 provide the information needed for the maintainers to understand the issue better."
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 }}'."
operations-per-run: 100

19
.github/workflows/triage-issues.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,19 @@
name: Label new issues
on:
issues:
types:
- opened
- reopened
permissions:
issues: write
jobs:
label_issues:
runs-on: ubuntu-latest
steps:
- name: Add triage label
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
with:
add-labels: triage

Просмотреть файл

@ -56,9 +56,9 @@
"makefile-tools.configuration.makefile.configureOnEdit.description": "Automatically configure Makefile project directories when any relevant makefiles and/or settings are changed",
"makefile-tools.configuration.makefile.configureAfterCommand.description": "Automatically configure Makefile project directories after relevant operations, like change build configuration or makefile target",
"makefile-tools.configuration.makefile.preConfigureScript.description": "The path to the script that needs to be run at least once before configure",
"makefile-tools.configuration.makefile.preConfigureArgs.description": "Arguments to pass to the preConfigureScript",
"makefile-tools.configuration.makefile.preConfigureArgs.description": "Arguments to pass to the pre-configure script",
"makefile-tools.configuration.makefile.postConfigureScript.description": "The path to the script that needs to be run at least once after configure",
"makefile-tools.configuration.makefile.postConfigureArgs.description": "Arguments to pass to the postConfigureScript",
"makefile-tools.configuration.makefile.postConfigureArgs.description": "Arguments to pass to the post-configure script",
"makefile-tools.configuration.makefile.alwaysPreConfigure.description": "Always run the pre-configure script before configure",
"makefile-tools.configuration.makefile.alwaysPostConfigure.description": "Always run the post-configure script after configure",
"makefile-tools.configuration.makefile.ignoreDirectoryCommands.description": "Don't analyze directory changing commands like cd, push, pop.",