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:
committed by
Bobby R. Bruce
parent
a2d34a52fc
commit
edc4ff3382
2
.github/workflows/ci-tests.yaml
vendored
2
.github/workflows/ci-tests.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user