Skip to content

Commit 31a8ea0

Browse files
authored
Merge pull request #596 from ilovelinux/feat/ilovelinux-595-add-yaml-files-to-gitlab-ci
Add support for `.gitlab-ci.yaml` files
2 parents 5c6cdbc + cd3362f commit 31a8ea0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
description: 'Validate GitLab CI config against the schema provided by SchemaStore'
203203
entry: check-jsonschema --builtin-schema vendor.gitlab-ci --data-transform gitlab-ci --regex-variant nonunicode
204204
language: python
205-
files: ^.*\.gitlab-ci\.yml$
205+
files: ^.*\.gitlab-ci\.(yml|yaml)$
206206
types: [yaml]
207207

208208
# this hook is autogenerated from a script

src/check_jsonschema/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def _githubusercontent_url(owner: str, repo: str, ref: str, path: str) -> str:
192192
"--regex-variant",
193193
"nonunicode",
194194
],
195-
"files": r"^.*\.gitlab-ci\.yml$",
195+
"files": r"^.*\.gitlab-ci\.(yml|yaml)$",
196196
"types": "yaml",
197197
},
198198
},

tests/acceptance/test_hook_file_matches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ def get_hook_config(hookid):
172172
".gitlab-ci.yml",
173173
".gitlab/.gitlab-ci.yml",
174174
"gitlab/.gitlab-ci.yml",
175+
".gitlab-ci.yaml",
175176
),
176177
"bad": (
177-
".gitlab-ci.yaml",
178178
"gitlab-ci.yml",
179179
".gitlab/gitlab-ci.yml",
180180
"gitlab/gitlab-ci.yml",

0 commit comments

Comments
 (0)