-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from minrk/pre-commit-hook
Define pre-commit hook
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# This is a pre-commit hook definition, for more details see: | ||
# https://pre-commit.com/#new-hooks | ||
# | ||
# The purpose of this hook is to restore Chart.yaml and values.yaml files | ||
# that may have been updated by chartpress. | ||
# | ||
- id: chartpress | ||
name: chartpress --reset | ||
files: (Chart|chartpress|values).ya?ml | ||
description: Run `chartpress --reset` to clean up helm charts before committing. | ||
entry: chartpress --reset | ||
language: python | ||
pass_filenames: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters