Skip to content

Commit

Permalink
Add pre-commit hook for validating release notes
Browse files Browse the repository at this point in the history
- This is a pre-commit hook using `pre-commit` framework to validate release notes YAML files.
- The hook checks for correct structure, formatting and required fields in the `release-notes` directory.
- This ensures consistency and correctness in release notes before committing changes.

Ref: #934 (comment)
  • Loading branch information
aaradhak committed Aug 12, 2024
1 parent 9aee93a commit f207c1d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: local
hooks:
- id: validate-release-notes
name: Validate Release Notes
entry: python ci/check-release-notes.py
language: python
files: ^release-notes/.*\.yml$

0 comments on commit f207c1d

Please sign in to comment.