Skip to content

Commit 99439e9

Browse files
authored
Merge pull request #282 from djgoku/feature/add-vendor-bitbucket-pipelines
Feature/add vendor bitbucket pipelines
2 parents b103258 + f330ea6 commit 99439e9

File tree

8 files changed

+783
-0
lines changed

8 files changed

+783
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@
4040
files: ^bamboo-specs/.*\.(yml|yaml)$
4141
types: [yaml]
4242

43+
# this hook is autogenerated from a script
44+
# to modify this hook, update `src/check_jsonschema/catalog.py`
45+
# and run `make generate-hooks` or `tox run -e generate-hooks-config`
46+
- id: check-bitbucket-pipelines
47+
name: Validate Bitbucket Pipelines
48+
description: 'Validate Bitbucket Pipelines against the schema provided by SchemaStore'
49+
entry: check-jsonschema --builtin-schema vendor.bitbucket-pipelines
50+
language: python
51+
files: bitbucket-pipelines\.(yml|yaml)$
52+
types: [yaml]
53+
4354
# this hook is autogenerated from a script
4455
# to modify this hook, update `src/check_jsonschema/catalog.py`
4556
# and run `make generate-hooks` or `tox run -e generate-hooks-config`

docs/precommit_usage.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ Validate Bamboo Specs against the schema provided by SchemaStore
7171
- id: check-bamboo-spec
7272
7373
74+
``check-bitbucket-pipelines``
75+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76+
77+
Validate Bitbucket Pipelines against the schema provided by SchemaStore
78+
79+
.. code-block:: yaml
80+
:caption: example config
81+
82+
- repo: https://github.com/python-jsonschema/check-jsonschema
83+
rev: 0.23.2
84+
hooks:
85+
- id: check-bitbucket-pipelines
86+
87+
7488
``check-buildkite``
7589
~~~~~~~~~~~~~~~~~~~
7690

docs/usage.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ SchemaStore and other sources:
7474
7575
- ``vendor.azure-pipelines``
7676
- ``vendor.bamboo-spec``
77+
- ``vendor.bitbucket-pipelines``
7778
- ``vendor.buildkite``
7879
- ``vendor.dependabot``
7980
- ``vendor.github-actions``
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Atlassian and others. All rights reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)