Skip to content

Commit

Permalink
Merge pull request #61 from j3soon/feat/committers
Browse files Browse the repository at this point in the history
Include committers in GitHub repos
  • Loading branch information
ojacques authored Jul 11, 2024
2 parents 563af41 + 2c2ec0e commit 877d52c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mkdocs_git_committers_plugin_2/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ def get_contributors_to_file(self, path):
'url': commit['author']['html_url'],
'avatar': commit['author']['avatar_url']
})
if commit['committer'] and commit['committer']['login'] and commit['committer']['login'] not in [author['login'] for author in authors]:
authors.append({'login': commit['committer']['login'],
'name': commit['committer']['login'],
'url': commit['committer']['html_url'],
'avatar': commit['committer']['avatar_url']
})
else:
# GitLab
if commit['author_name']:
Expand Down

0 comments on commit 877d52c

Please sign in to comment.