Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mkdocs_git_committers_plugin_2/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_contributors_to_file(self, path, submodule_repo=None):
# REST endpoint is in the form https://api.github.com/repos/[repository]/commits?path=[uri-encoded-path]&sha=[branch]&per_page=100
url = self.githuburl + "/repos/" + repository + "/commits?path=" + requests.utils.quote(path) + "&sha=" + self.branch + "&per_page=100"
authors = []
LOG.info("git-committers: fetching contributors for " + path)
LOG.debug("git-committers: fetching contributors for " + path)
r = requests.get(url=url, headers=self.auth_header)
self.last_request_return_code = r.status_code
if r.status_code == 200:
Expand Down Expand Up @@ -169,7 +169,7 @@ def get_contributors_to_file(self, path, submodule_repo=None):
if self.auth_header is None:
LOG.warning("git-committers: Co-authors exist in commit messages but will not be added, since no GitHub token is provided. Set it under 'token' mkdocs.yml config or MKDOCS_GIT_COMMITTERS_APIKEY environment variable.")
else:
LOG.info("git-committers: fetching contributors for " + path + " using GraphQL API")
LOG.debug("git-committers: fetching contributors for " + path + " using GraphQL API")
# Query GraphQL API, and get a list of unique authors
url = self.githuburl + "/graphql"
query = {
Expand Down