From 9f7b0d90698ac3221c4af6cd915665dbbd3c502e Mon Sep 17 00:00:00 2001 From: Keiichi Watanabe Date: Mon, 21 Jun 2021 17:28:18 +0900 Subject: [PATCH] check commit authors for each commit Although we check commit authors in test_commit_format.py to skip tests for dependabot's commits, the current code only checks the author of the head commit. This PR make it check each commit's author so that we can test branches where both a dependabot's commit and other commits exist. Signed-off-by: Keiichi Watanabe --- integration_tests/test_commit_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_tests/test_commit_format.py b/integration_tests/test_commit_format.py index 7f100af..ae8c587 100644 --- a/integration_tests/test_commit_format.py +++ b/integration_tests/test_commit_format.py @@ -32,7 +32,7 @@ def test_commit_format(): for sha in shas.split(): # Do not enforce the commit rules when the committer is dependabot. - author_cmd = "git show -s --format='%ae'" + author_cmd = "git show -s --format='%ae' " + sha author = get_cmd_output(author_cmd) if "dependabot" in author: continue