Skip to content

Commit

Permalink
build: Fix changelog.py to tolerate missing e-mail in commit message
Browse files Browse the repository at this point in the history
The wasm-updater does not sign-off on changes so there is no e-mail
address in the commit message.

Signed-off-by: Torin Sandall <[email protected]>
  • Loading branch information
tsandall committed Dec 3, 2020
1 parent d41ebea commit 299506f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def is_maintainer(commit_message):

def author_email(commit_message):
match = re.search(r"<(.*@.*)>", commit_message)
author = match.group(1)
return str(author)

if match:
author = match.group(1)
return str(author)
return ""

github_ids = {}
def get_github_id(commit_message, commit_id, token):
Expand Down

0 comments on commit 299506f

Please sign in to comment.