Update function name

pull/8722/head
Wilken Rivera 6 years ago
parent 19e7114301
commit 2bdca997ac

@ -5,7 +5,7 @@ DO_PR_CHECK=1
set -o pipefail set -o pipefail
is_doc_pr(){ is_doc_or_tech_debt_pr(){
if ! (($+commands[jq])); then if ! (($+commands[jq])); then
DO_PR_CHECK=0 DO_PR_CHECK=0
echo "jq not found" echo "jq not found"
@ -39,16 +39,16 @@ get_prs(){
fi fi
done | while read PR_NUM done | while read PR_NUM
do do
if (($DO_PR_CHECK)) && is_doc_pr $PR_NUM; then if (($DO_PR_CHECK)) && is_doc_or_tech_debt_pr $PR_NUM; then
continue continue
fi fi
echo "https://github.com/hashicorp/packer/pull/${PR_NUM}" echo "https://github.com/hashicorp/packer/pull/${PR_NUM}"
done done
} }
#is_doc_pr 52061111 #is_doc_or_tech_debt_pr 52061111
# is_doc_pr 5206 # non-doc pr # is_doc_or_tech_debt_pr 5206 # non-doc pr
#is_doc_pr 5434 # doc pr #is_doc_or_tech_debt_pr 5434 # doc pr
#echo $? #echo $?
#exit #exit

Loading…
Cancel
Save