infra: add issue validator and stale action (#4061)
* infra: update stale action * infra: add issue validator * code clean * add missing labels * fix reproduction check * code clean * add version check * fix version check * add missing label * add note to version message * code clean * update stale message
This commit is contained in:
19
.github/workflows/validate-issue.yml
vendored
Normal file
19
.github/workflows/validate-issue.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Issue Validator and Labeler
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened, edited]
|
||||
|
||||
jobs:
|
||||
validate-and-label:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Validate Issue Template and Add Labels
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const script = require('./.github/scripts/validate.js')
|
||||
await script({github, context})
|
||||
Reference in New Issue
Block a user