We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6ba11b commit 8f274adCopy full SHA for 8f274ad
.github/release_log.py
@@ -27,7 +27,10 @@ def main():
27
for commit in data['commits']:
28
message = commit['commit']['message']
29
first_line = message.partition('\n\n')[0]
30
- gh_username = commit['author']['login']
+ if commit.get('author'):
31
+ username = '@{}'.format(commit['author']['login'])
32
+ else:
33
+ username = commit['commit']['author']['name']
34
sha = commit["sha"][:8]
35
36
m = re.search(r'\#(?P<num>\d+)\b', message)
@@ -37,7 +40,7 @@ def main():
37
40
issue_num = None
38
41
39
42
print(f'* {first_line}')
- print(f' (by @{gh_username} in {sha}', end='')
43
+ print(f' (by {username} in {sha}', end='')
44
if issue_num:
45
print(f' for #{issue_num})')
46
else:
0 commit comments