Skip to content

Commit 0aaf0c5

Browse files
Fix yaml syntax for GitHub actions (#6644)
1 parent 29ff9be commit 0aaf0c5

7 files changed

Lines changed: 23 additions & 17 deletions

.github/actions/common/ActionBase.js

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/common/ActionBase.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ export class ActionBase {
5454

5555
// All indicated labels must be present
5656
if (this.labels) {
57+
if (this.labels?.length > 2 && this.labels?.startsWith('"') && this.labels?.endsWith('"')) {
58+
this.labels = this.labels.substring(1, this.labels.length - 2);
59+
}
5760
this.labelsSet = this.labels?.split(',');
5861
for (const str of this.labelsSet) {
5962
if (str != "") {
60-
query = query.concat(` label:"${str}"`)
63+
query = query.concat(` label:"${str}"`);
6164
}
6265
}
6366
}

.github/workflows/by-design-closer-debugger .yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: ./.github/actions/StaleCloser
2121
with:
2222
readonly: ${{ github.event.inputs.readonly }}
23-
labels: by design, debugger
24-
ignoreLabels: language service, internal
23+
labels: by design,debugger
24+
ignoreLabels: language service,internal
2525
closeDays: 0
2626
closeComment: "This issue has been closed automatically because it's labeled as 'by design'."

.github/workflows/external-closer-debugger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: ./.github/actions/StaleCloser
2121
with:
2222
readonly: ${{ github.event.inputs.readonly }}
23-
labels: external, debugger
24-
ignoreLabels: language service, internal
23+
labels: external,debugger
24+
ignoreLabels: language service,internal
2525
closeDays: 0
2626
closeComment: "This issue has been closed automatically because it's labeled as 'external'."

.github/workflows/investigate-closer-debugger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: ./.github/actions/StaleCloser
2121
with:
2222
readonly: ${{ github.event.inputs.readonly }}
23-
labels: investigate, investigate: costing, debugger
24-
ignoreLabels: language service, internal
23+
labels: "investigate,investigate: costing,debugger"
24+
ignoreLabels: language service,internal
2525
closeDays: 180
2626
closeComment: "This issue has been closed automatically because it has not had recent activity."

.github/workflows/more-info-needed-closer-debugger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
uses: ./.github/actions/StaleCloser
2121
with:
2222
readonly: ${{ github.event.inputs.readonly }}
23-
labels: more info needed, debugger
24-
ignoreLabels: language service, internal
25-
involves: wardengnaw, pieandcakes, calgagi
23+
labels: more info needed,debugger
24+
ignoreLabels: language service,internal
25+
involves: wardengnaw,pieandcakes,calgagi
2626
closeDays: 14
2727
closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity."
2828
pingDays: 7

.github/workflows/question-closer-debugger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
uses: ./.github/actions/StaleCloser
2121
with:
2222
readonly: ${{ github.event.inputs.readonly }}
23-
labels: question, debugger
24-
ignoreLabels: language service, internal
25-
involves: wardengnaw, pieandcakes, calgagi
23+
labels: question,debugger
24+
ignoreLabels: language service,internal
25+
involves: wardengnaw,pieandcakes,calgagi
2626
closeDays: 14
2727
closeComment: "This issue has been closed automatically because it's labeled as a 'question' and has not had recent activity."
2828
pingDays: 7

0 commit comments

Comments
 (0)