@@ -118,13 +118,13 @@ def get_contributors_to_file(self, path, submodule_repo=None):
118
118
authors .append ({'login' : commit ['author' ]['login' ],
119
119
'name' : commit ['author' ]['login' ],
120
120
'url' : commit ['author' ]['html_url' ],
121
- 'avatar' : commit ['author' ]['avatar_url' ] if user ['avatar_url' ] is not None else ''
121
+ 'avatar' : commit ['author' ]['avatar_url' ] if commit [ 'author' ] ['avatar_url' ] is not None else ''
122
122
})
123
123
if commit ['committer' ] and commit ['committer' ]['login' ] and commit ['committer' ]['login' ] not in [author ['login' ] for author in authors ]:
124
124
authors .append ({'login' : commit ['committer' ]['login' ],
125
125
'name' : commit ['committer' ]['login' ],
126
126
'url' : commit ['committer' ]['html_url' ],
127
- 'avatar' : commit ['committer' ]['avatar_url' ] if user ['avatar_url' ] is not None else ''
127
+ 'avatar' : commit ['committer' ]['avatar_url' ] if commit [ 'committer' ] ['avatar_url' ] is not None else ''
128
128
})
129
129
if commit ['commit' ] and commit ['commit' ]['message' ] and '\n Co-authored-by:' in commit ['commit' ]['message' ]:
130
130
github_coauthors_exist = True
@@ -138,7 +138,7 @@ def get_contributors_to_file(self, path, submodule_repo=None):
138
138
authors .append ({'login' : self .gitlabauthors_cache [commit ['author_name' ]]['username' ],
139
139
'name' : commit ['author_name' ],
140
140
'url' : self .gitlabauthors_cache [commit ['author_name' ]]['web_url' ],
141
- 'avatar' : self .gitlabauthors_cache [commit ['author_name' ]]['avatar_url' ] if user ['avatar_url' ] is not None else ''
141
+ 'avatar' : self .gitlabauthors_cache [commit ['author_name' ]]['avatar_url' ] if self . gitlabauthors_cache [ commit [ 'author_name' ]] ['avatar_url' ] is not None else ''
142
142
})
143
143
else :
144
144
# Fetch author from GitLab API
0 commit comments