Test Plan Item Validator #189
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Plan Item Validator | |
on: | |
issues: | |
types: [edited] | |
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') | |
uses: actions/checkout@v2 | |
with: | |
repository: 'microsoft/vscode-github-triage-actions' | |
ref: stable | |
- name: Install Actions | |
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item') | |
run: npm install --production | |
- name: Run Test Plan Item Validator | |
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item') | |
uses: ./test-plan-item-validator | |
with: | |
label: testplan-item | |
invalidLabel: invalid-testplan-item | |
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. |