X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=devtools%2Fcheck-git-log.sh;h=f9d0550393b9f19312ec76f94221dedbb5ec993c;hp=a763ccf7840ef6e2716c84b07d977c0a89471af9;hb=7a8735e2fd7c72240557703a2106527986267123;hpb=bd711af366273ddcb78d4a877feac578b7040e81 diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh index a763ccf784..f9d0550393 100755 --- a/devtools/check-git-log.sh +++ b/devtools/check-git-log.sh @@ -161,6 +161,24 @@ bad=$(echo "$tags" | sed 's,^.,\t&,') [ -z "$bad" ] || printf "Wrong tag:\n$bad\n" +# check missing Coverity issue: tag +bad=$(for commit in $commits; do + body=$(git log --format='%b' -1 $commit) + echo "$body" | grep -qi coverity || continue + echo "$body" | grep -q '^Coverity issue:' && continue + git log --format='\t%s' -1 $commit +done) +[ -z "$bad" ] || printf "Missing 'Coverity issue:' tag:\n$bad\n" + +# check missing Bugzilla ID: tag +bad=$(for commit in $commits; do + body=$(git log --format='%b' -1 $commit) + echo "$body" | grep -qi bugzilla || continue + echo "$body" | grep -q '^Bugzilla ID:' && continue + git log --format='\t%s' -1 $commit +done) +[ -z "$bad" ] || printf "Missing 'Bugzilla ID:' tag:\n$bad\n" + # check missing Fixes: tag bad=$(for fix in $fixes ; do git log --format='%b' -1 $fix | grep -q '^Fixes: ' ||