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

29 lines
1.3 KiB
YAML
Raw Normal View History

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
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
ref: stable
- 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
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
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.