Skip to content

Commit cef4a66

Browse files
add new workflow for stale issues (#513)
* add new workflow for stale issues * add triage labels * update localize string
1 parent 7af7c28 commit cef4a66

3 files changed

Lines changed: 48 additions & 2 deletions

File tree

.github/workflows/stale-issues.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Handling stale issues
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
env:
12+
stale-days: 30
13+
close-days: 14
14+
stale-label: stale
15+
only-label: more info needed
16+
steps:
17+
- uses: actions/stale@v4.1.1
18+
with:
19+
stale-issue-label: ${{ env.stale-label }}
20+
only-labels: ${{ env.only-label }}
21+
days-before-pr-stale: -1
22+
days-before-pr-close: -1
23+
days-before-stale: ${{ env.stale-days }}
24+
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."
25+
days-before-close: ${{ env.close-days }}
26+
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 }}'."
27+
operations-per-run: 100
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Label new issues
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
9+
permissions:
10+
issues: write
11+
12+
jobs:
13+
label_issues:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Add triage label
17+
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
18+
with:
19+
add-labels: triage

package.nls.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
"makefile-tools.configuration.makefile.configureOnEdit.description": "Automatically configure Makefile project directories when any relevant makefiles and/or settings are changed",
5757
"makefile-tools.configuration.makefile.configureAfterCommand.description": "Automatically configure Makefile project directories after relevant operations, like change build configuration or makefile target",
5858
"makefile-tools.configuration.makefile.preConfigureScript.description": "The path to the script that needs to be run at least once before configure",
59-
"makefile-tools.configuration.makefile.preConfigureArgs.description": "Arguments to pass to the preConfigureScript",
59+
"makefile-tools.configuration.makefile.preConfigureArgs.description": "Arguments to pass to the pre-configure script",
6060
"makefile-tools.configuration.makefile.postConfigureScript.description": "The path to the script that needs to be run at least once after configure",
61-
"makefile-tools.configuration.makefile.postConfigureArgs.description": "Arguments to pass to the postConfigureScript",
61+
"makefile-tools.configuration.makefile.postConfigureArgs.description": "Arguments to pass to the post-configure script",
6262
"makefile-tools.configuration.makefile.alwaysPreConfigure.description": "Always run the pre-configure script before configure",
6363
"makefile-tools.configuration.makefile.alwaysPostConfigure.description": "Always run the post-configure script after configure",
6464
"makefile-tools.configuration.makefile.ignoreDirectoryCommands.description": "Don't analyze directory changing commands like cd, push, pop.",

0 commit comments

Comments
 (0)