mirror of https://github.com/grpc/grpc-web.git
Fix release notes script to handle empty PR descriptions. (#1196)
This commit is contained in:
parent
81ce4c52ff
commit
173cb546b7
|
@ -158,7 +158,8 @@ class ProcessChangelog:
|
|||
if pr['merged_at'] is None: # not merged
|
||||
continue
|
||||
label_level = self._get_pr_label_level(pr['labels'])
|
||||
m = re.search(r'author: ?@([A-Za-z\d-]+)', pr['body'])
|
||||
m = None if pr['body'] is None else re.search(
|
||||
r'author: ?@([A-Za-z\d-]+)', pr['body'])
|
||||
if m:
|
||||
author = m[1] # author attribution override
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue