should not be closed #23
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: Validate issue | |
on: | |
issues: | |
types: [opened, labeled] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
issue-opened: | |
if: "${{ contains(github.event.issue.labels.*.name, 'template: bug') && github.event.action == 'opened' }}" | |
name: Issue opened | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: 'Autolabel based on affected areas' | |
run: node ./.github/actions/issue-validator/autolabel/index.mjs | |
- name: 'Close without valid reproduction link' | |
run: node ./.github/actions/issue-validator/repro-link/index.mjs | |
issue-labeled: | |
if: "${{ contains(github.event.issue.labels.*.name, 'template: bug') && github.event.action == 'labeled' }}" | |
name: Issue labeled | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: 'Clarify reproduction steps' | |
run: node ./.github/actions/issue-validator/clarify/index.mjs |