Skip to content

Commit

Permalink
Turn on "description:" verification for v1beta3 API.
Browse files Browse the repository at this point in the history
  • Loading branch information
vishh committed Mar 6, 2015
1 parent 28aef4b commit 1744606
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/verify-description.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ find_files() {
\) -name '*.go'
}

files=`find_files | egrep "pkg/api/v.[^/]*/types\.go" | grep -v v1beta3`
files=`find_files | egrep "pkg/api/v.[^/]*/types\.go"`

for file in $files
do
Expand Down
2 changes: 1 addition & 1 deletion hooks/description.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Print 1 if the file in $1 is not in need of additional field descriptions, 0 otherwise.
FILE="$1"

if grep json: "${FILE}" | grep -v ,inline | grep -v -q description: ; then
if grep json: "${FILE}" | grep -v ,inline | grep -v -q description: | grep -v // ; then
echo "0"
else
echo "1"
Expand Down

0 comments on commit 1744606

Please sign in to comment.