2020-03-28 03:43:13 +00:00
name : Test Plan Item Validator
on :
issues :
2020-04-08 18:47:36 +00:00
types : [ edited]
2020-03-28 03:43:13 +00:00
2020-04-08 18:47:36 +00:00
# also edit in ./on-label.yml
2020-03-28 03:43:13 +00:00
jobs :
main :
runs-on : ubuntu-latest
steps :
- name : Checkout Actions
2020-04-01 12:28:38 +00:00
if : contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
2022-03-23 17:21:25 +00:00
uses : actions/checkout@v3
2020-03-28 03:43:13 +00:00
with :
2020-11-24 10:44:18 +00:00
repository : "microsoft/vscode-github-triage-actions"
2020-04-08 18:47:36 +00:00
path : ./actions
2021-02-05 22:57:41 +00:00
ref : stable
2020-04-07 05:09:13 +00:00
- name : Install Actions
if : contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
2020-04-08 18:47:36 +00:00
run : npm install --production --prefix ./actions
2020-03-28 03:43:13 +00:00
- name : Run Test Plan Item Validator
2020-04-01 12:28:38 +00:00
if : contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
2020-04-08 18:47:36 +00:00
uses : ./actions/test-plan-item-validator
2020-03-28 03:43:13 +00:00
with :
2020-03-28 03:50:11 +00:00
label : testplan-item
2020-06-10 07:35:36 +00:00
appInsightsKey : ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
2020-03-28 04:05:30 +00:00
invalidLabel : invalid-testplan-item
2020-03-28 03:43:13 +00:00
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.