Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,20 @@
)$
types: [yaml]

# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
- id: check-github-issue-forms
name: Validate GitHub issue forms
description: 'Validate GitHub issue forms against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.github-issue-forms
language: python
files: >
(?x)^(
^\.github/ISSUE_TEMPLATE/(?!config\.ya?ml$).+$
)$
types: [yaml]

# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Unreleased

.. vendor-insert-here

- Add GitHub issue form schema and pre-commit hook (:issue:`588`).

0.33.3
------

Expand Down
14 changes: 14 additions & 0 deletions docs/precommit_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,20 @@ Validate GitHub Actions against the schema provided by SchemaStore
- id: check-github-actions


``check-github-issue-forms``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Validate GitHub issue forms against the schema provided by SchemaStore

.. code-block:: yaml
:caption: example config

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.3
hooks:
- id: check-github-issue-forms


``check-github-workflows``
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ SchemaStore and other sources:
- ``vendor.dependabot``
- ``vendor.drone-ci``
- ``vendor.github-actions``
- ``vendor.github-issue-forms``
- ``vendor.github-workflows``
- ``vendor.gitlab-ci``
- ``vendor.meltano``
Expand Down
Loading
Loading