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
|
if pr['merged_at'] is None: # not merged
|
||||||
continue
|
continue
|
||||||
label_level = self._get_pr_label_level(pr['labels'])
|
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:
|
if m:
|
||||||
author = m[1] # author attribution override
|
author = m[1] # author attribution override
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue