Skip to content

Commit

Permalink
Check v1beta3 description on git commit
Browse files Browse the repository at this point in the history
v1beta3 is no longer a special little snowflake
  • Loading branch information
eparis committed May 1, 2015
1 parent 204170e commit ddca824
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ for file in $(git diff --cached --name-only --diff-filter ACM | grep "\.sh" | gr
done

# Check API schema definitions for field descriptions
# TODO: Check v1beta3, once it is documented
for file in $(git diff --cached --name-only --diff-filter ACM | egrep "pkg/api/v.[^/]*/types\.go" | grep -v "third_party" | grep -v v1beta3); do
for file in $(git diff --cached --name-only --diff-filter ACM | egrep "pkg/api/v.[^/]*/types\.go" | grep -v "third_party"); do
# Check for files with fields without description tags
descriptionless=$("${KUBE_HOOKS_DIR}/description.sh" "${file}")
if [[ "$descriptionless" -eq "0" ]]; then
Expand Down

0 comments on commit ddca824

Please sign in to comment.