mirror of
https://github.com/rust-vmm/rust-vmm-ci.git
synced 2026-08-05 03:08:31 +00:00
exclude dependabot from the 50/72 commit rule
When dependabot updates the rust-vmm-ci submodule, the git commit sumamry is over 50 chars. To be able to merge PR, exclude the dependabot user from this checks. Fixes: https://github.com/rust-vmm/rust-vmm-ci/issues/61 Signed-off-by: Andreea Florescu <fandree@amazon.com>
This commit is contained in:
committed by
Alexandru Agache
parent
63fdf0f635
commit
ebc701641f
@@ -31,6 +31,11 @@ def test_commit_format():
|
||||
shas = get_cmd_output(shas_cmd)
|
||||
|
||||
for sha in shas.split():
|
||||
# Do not enforce the commit rules when the committer is dependabot.
|
||||
author_cmd = "git show -s --format='%ae'"
|
||||
author = get_cmd_output(author_cmd)
|
||||
if "dependabot" in author:
|
||||
continue
|
||||
message_cmd = "git show --pretty=format:%B -s " + sha
|
||||
message = get_cmd_output(message_cmd)
|
||||
message_lines = message.split("\n")
|
||||
|
||||
Reference in New Issue
Block a user