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
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
description: 'Validate GitLab CI config against the schema provided by SchemaStore'
entry: check-jsonschema --builtin-schema vendor.gitlab-ci --data-transform gitlab-ci --regex-variant nonunicode
language: python
files: ^.*\.gitlab-ci\.yml$
files: ^.*\.gitlab-ci\.(yml|yaml)$
types: [yaml]

# this hook is autogenerated from a script
Expand Down
2 changes: 1 addition & 1 deletion src/check_jsonschema/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
"--regex-variant",
"nonunicode",
],
"files": r"^.*\.gitlab-ci\.yml$",
"files": r"^.*\.gitlab-ci\.(yml|yaml)$",
"types": "yaml",
},
},
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/test_hook_file_matches.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def get_hook_config(hookid):
".gitlab-ci.yml",
".gitlab/.gitlab-ci.yml",
"gitlab/.gitlab-ci.yml",
".gitlab-ci.yaml",
),
"bad": (
".gitlab-ci.yaml",
"gitlab-ci.yml",
".gitlab/gitlab-ci.yml",
"gitlab/gitlab-ci.yml",
Expand Down
Loading