Skip to content

Commit

Permalink
Add pre-commit hooks to check changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Aug 16, 2024
1 parent bf195ae commit 7b25623
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ repos:
- types-aiobotocore
- watchdog
- xxhash
- repo: https://github.com/ansible-community/antsibull-changelog
rev: 0.29.0
hooks:
- id: antsibull-changelog-lint
- id: antsibull-changelog-lint-changelog-yaml
- repo: local
hooks:
- id: ansible-test-sanity
Expand Down
64 changes: 64 additions & 0 deletions changelogs/.plugin-cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
objects:
role: {}
plugins:
become: {}
cache: {}
callback: {}
cliconf: {}
connection: {}
filter: {}
httpapi: {}
inventory: {}
lookup: {}
module:
credential:
description: Manage credentials in EDA Controller
name: credential
namespace: ''
version_added: 2.0.0
credential_info:
description: List credentials in the EDA Controller
name: credential_info
namespace: ''
version_added: 2.0.0
credential_type:
description: Manage credential types in EDA Controller
name: credential_type
namespace: ''
version_added: 2.0.0
credential_type_info:
description: List credential types in EDA Controller
name: credential_type_info
namespace: ''
version_added: 2.0.0
decision_environment:
description: Create, update or delete decision environment in EDA Controller
name: decision_environment
namespace: ''
version_added: 2.0.0
decision_environment_info:
description: List a decision environment in EDA Controller
name: decision_environment_info
namespace: ''
version_added: 2.0.0
project:
description: Create, update or delete project in EDA Controller
name: project
namespace: ''
version_added: 2.0.0
project_info:
description: List projects in EDA Controller
name: project_info
namespace: ''
version_added: 2.0.0
upcase:
description: Upper cases a passed in string
name: upcase
namespace: ''
version_added: 1.0.0
netconf: {}
shell: {}
strategy: {}
test: {}
vars: {}
version: 1.4.7
2 changes: 2 additions & 0 deletions changelogs/fragments/230-anstibull-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- Added antsibull-changelog.
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ description =
Run all test types: sanity, unit, integration
py{39,310,311,312,313}: with {basepython}

[testenv:docs]
deps = antsibull-changelog
description = Builds documentation with changelog
commands =
antsibull-changelog generate
[testenv:lint]
deps = pre-commit
description = Run linters
Expand Down

0 comments on commit 7b25623

Please sign in to comment.