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
11 changes: 11 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@
)$
types_or: [json,yaml]

# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just generate-hooks` or `tox run -e generate-hooks-config`
- id: check-changie
name: Validate Changie config
description: 'Validate Changie configuration'
entry: check-jsonschema --builtin-schema vendor.changie
language: python
files: ^\.changie\.(yml|yaml)$
types: [yaml]

# this hook is autogenerated from a script
# to modify this hook, update `src/check_jsonschema/catalog.py`
# and run `just 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 @@ -8,6 +8,8 @@ CHANGELOG
Unreleased
----------

- Add Changie.dev schema and pre-commit hook. Thanks :user:`edgarrmondragon`! (:pr:`662`)

.. vendor-insert-here

0.37.0
Expand Down
14 changes: 14 additions & 0 deletions docs/precommit_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ Validate Buildkite Pipelines against the schema provided by Buildkite
- id: check-buildkite


``check-changie``
~~~~~~~~~~~~~~~~~

Validate Changie configuration

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

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.0
hooks:
- id: check-changie


``check-circle-ci``
~~~~~~~~~~~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ SchemaStore and other sources:
- ``vendor.bamboo-spec``
- ``vendor.bitbucket-pipelines``
- ``vendor.buildkite``
- ``vendor.changie``
- ``vendor.circle-ci``
- ``vendor.citation-file-format``
- ``vendor.cloudbuild``
Expand Down
Loading
Loading