We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 794e859 commit 2bb9596Copy full SHA for 2bb9596
1 file changed
.github/scripts/build_assets/api_handler.py
@@ -63,7 +63,13 @@ def find_all_authors(pull_req_data, token):
63
commits = response.json()
64
authors = set() # want unique authors only
65
for commit in commits:
66
- authors.add(commit["commit"]["author"]["name"])
+ try:
67
+ # this contains proper referenceable github name
68
+ authors.add(commit["author"]["login"])
69
+ except TypeError:
70
+ # special case
71
+ authors.add(commit["commit"]["author"]["name"])
72
+ print(f"This URL didn't have an `author` attribute: {pull_req_data['commits_url']}")
73
return ", ".join(["@" + author for author in list(authors)])
74
75
0 commit comments