Skip to content

Authors on GitHub may only be displayed for the last 100 commits #62

@j3soon

Description

@j3soon

I'm reading through the GitHub API and found that aside from the per_page parameter, there's also a page parameters, which doesn't seem to be used in the code:

# 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/" + self.config['repository'] + "/commits?path=" + requests.utils.quote(path) + "&sha=" + self.branch + "&per_page=100"

This may cause older commits to be ignored. However, I think this case does not happen frequently since the history of a certain file rarely exceeds 100 commits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions