misc: Include body in check for Change-Id

Updates ci-tests.yaml to check the entire commit message for
the Change-Id, not just the subject.

Change-Id: Ia76c77d096617a6fe76ffea7f2bd8a4295ca14f7
This commit is contained in:
Melissa Jost
2023-07-10 14:36:27 -07:00
committed by Bobby R. Bruce
parent a2d34a52fc
commit edc4ff3382

View File

@@ -29,7 +29,7 @@ jobs:
# loop through all the commits in the pull request
for commit in $(git rev-list ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}); do
git checkout $commit
if (git log -1 --pretty=format:"%s" | grep -q "Change-Id: ")
if (git log -1 --pretty=format:"%B" | grep -q "Change-Id: ")
then
# passes as long as at least one change-id exists in the pull request
exit 0