Skip to content

Commit

Permalink
Zuul gate to check if the cli doc is generated
Browse files Browse the repository at this point in the history
The below code adds check zuul gate to verify
that for every cli added to airshipctl appropriate
documentation is generated.

Closes: #280
Change-Id: Iba0f4393b9785190536aae2a13109ddb75fd0ef8
  • Loading branch information
SirishaGopigiri committed Jul 6, 2021
1 parent 3b49a3a commit 9e84463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/git_diff_check
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ then
exit 1
fi

git diff-files --quiet --ignore-submodules **/*.md
git diff-files --quiet --ignore-submodules **/*.rst
if [ $? -ne 0 ]
then
echo "git diff found modified cli help, please run make cli-docs"
Expand All @@ -38,7 +38,7 @@ then
exit 1
fi

git diff-index --cached --quiet --ignore-submodules HEAD -- **/*.md
git diff-index --cached --quiet --ignore-submodules HEAD -- **/*.rst
if [ $? -ne 0 ]
then
echo "git diff found modified cli help, please run make cli-docs"
Expand Down

0 comments on commit 9e84463

Please sign in to comment.