-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
GitHub Issue Forms are very commonly used—almost every repository uses them. It would be great if there were a ready-made hook for them.
Moreover, a custom hook created with “check-jsonschema” cannot run on pre-commit.ci because pre-commit.ci only provides network access at installation time, not at runtime. This means that a custom hook created with “check-jsonschema” is effectively unusable in CI. As a repository maintainer, you cannot know whether a PR has truly passed the pre-commit hooks checks. Therefore, it is strongly recommended to integrate it into the repository as a hook named "check-github-issue-forms".
My custom hook works in all scenarios:
- id: check-jsonschema
name: Check GitHub Issue Forms
files: ^\.github/ISSUE_TEMPLATE/(?!config\.yml$).+$
types: [yaml]
args: [--schemafile, https://www.schemastore.org/github-issue-forms.json]
Metadata
Metadata
Assignees
Labels
No labels