Skip to content

Commit d9db5ef

Browse files
committed
feat: Add GitHub issue forms schema and pre-commit hook
1 parent 0defc41 commit d9db5ef

File tree

11 files changed

+2355
-0
lines changed

11 files changed

+2355
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,20 @@
141141
)$
142142
types: [yaml]
143143

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

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Unreleased
1010

1111
.. vendor-insert-here
1212
13+
- Add GitHub issue form schema and pre-commit hook (:issue:`588`).
14+
1315
0.33.3
1416
------
1517

docs/precommit_usage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,20 @@ Validate GitHub Actions against the schema provided by SchemaStore
183183
- id: check-github-actions
184184
185185
186+
``check-github-issue-forms``
187+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
188+
189+
Validate GitHub issue forms against the schema provided by SchemaStore
190+
191+
.. code-block:: yaml
192+
:caption: example config
193+
194+
- repo: https://github.com/python-jsonschema/check-jsonschema
195+
rev: 0.33.3
196+
hooks:
197+
- id: check-github-issue-forms
198+
199+
186200
``check-github-workflows``
187201
~~~~~~~~~~~~~~~~~~~~~~~~~~
188202

docs/usage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ SchemaStore and other sources:
9696
- ``vendor.dependabot``
9797
- ``vendor.drone-ci``
9898
- ``vendor.github-actions``
99+
- ``vendor.github-issue-forms``
99100
- ``vendor.github-workflows``
100101
- ``vendor.gitlab-ci``
101102
- ``vendor.meltano``

0 commit comments

Comments
 (0)