Skip to content

Commit bef747b

Browse files
authored
Automatically add testplan-item label to valid TPIs (microsoft#157929)
Validate all issues as testplans
1 parent 44d9897 commit bef747b

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/on-label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
7272
uses: ./actions/test-plan-item-validator
7373
with:
74-
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
74+
refLabel: on-testplan
7575
label: testplan-item
7676
invalidLabel: invalid-testplan-item
7777
comment: Invalid test plan item. See errors below and the [test plan item spec](https://github.com/microsoft/vscode/wiki/Writing-Test-Plan-Items) for more information. This comment will go away when the issues are resolved.

.github/workflows/on-open.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,12 @@ jobs:
6262
needsMoreInfoLabel: "info-needed"
6363
translatorRequestedLabelPrefix: "translation-required-"
6464
translatorRequestedLabelColor: "c29cff"
65+
# source of truth in ./test-plan-item-validator.yml
66+
- name: Run Test Plan Item Validator
67+
uses: ./actions/test-plan-item-validator
68+
with:
69+
refLabel: on-testplan
70+
label: testplan-item
71+
invalidLabel: invalid-testplan-item
72+
comment: Invalid test plan item. See errors below and the [test plan item spec](https://github.com/microsoft/vscode/wiki/Writing-Test-Plan-Items) for more information. This comment will go away when the issues are resolved.
73+

.github/workflows/test-plan-item-validator.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
issues:
44
types: [edited]
55

6-
# also edit in ./on-label.yml
6+
# also edit in ./on-label.yml and ./on-open.yml
77
jobs:
88
main:
99
runs-on: ubuntu-latest
@@ -22,7 +22,7 @@ jobs:
2222
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
2323
uses: ./actions/test-plan-item-validator
2424
with:
25+
refLabel: on-testplan
2526
label: testplan-item
26-
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
2727
invalidLabel: invalid-testplan-item
2828
comment: Invalid test plan item. See errors below and the [test plan item spec](https://github.com/microsoft/vscode/wiki/Writing-Test-Plan-Items) for more information. This comment will go away when the issues are resolved.

0 commit comments

Comments
 (0)