From 9e8446339c41cabac8931a9d752086fa2d73d281 Mon Sep 17 00:00:00 2001 From: Sirisha Gopigiri Date: Mon, 19 Apr 2021 14:40:07 +0530 Subject: [PATCH] Zuul gate to check if the cli doc is generated 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 --- tools/git_diff_check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/git_diff_check b/tools/git_diff_check index e50f39209..e8c36b518 100755 --- a/tools/git_diff_check +++ b/tools/git_diff_check @@ -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" @@ -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"