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:
Krzysztof Moch
2024-08-21 09:55:45 +02:00
committed by GitHub
parent 1b691f8e81
commit 4611284247
5 changed files with 317 additions and 61 deletions

19
.github/workflows/validate-issue.yml vendored Normal file
View 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})