Skip to content

Commit

Permalink
pw_presubmit: Ignore svc account commit messages
Browse files Browse the repository at this point in the history
Change-Id: I15e189ea6b6af313c366e64428b95ac3872dde97
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112710
Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
  • Loading branch information
mohrr authored and CQ Bot Account committed Sep 29, 2022
1 parent 424825c commit d3044a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,9 @@ def _valid_capitalization(word: str) -> bool:

def commit_message_format(_: PresubmitContext):
"""Checks that the top commit's message is correctly formatted."""
if git_repo.commit_author().endswith('gserviceaccount.com'):
return

lines = git_repo.commit_message().splitlines()

# Show limits and current commit message in log.
Expand Down

0 comments on commit d3044a8

Please sign in to comment.