We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The GitHub API allows listing commits that only affect a file path:
https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
This endpoint also allows further filtering using the since and until parameters:
since
until
curl --include -H "Authorization: token <TOKEN>" \ "https://api.github.com/repos/USER/REPO/commits?path=/some/path.txt&since=2018-07-0100:00:00Z"
None of these are yet present in the library. Currently, listing commits is done thought the listCommits method, defined as:
listCommits
public PagedIterable<GHCommit> listCommits() { ... }
And can be used like:
GitHub github = ... for (GHCommit commit : github.getRepository("[some-repo]").listCommits()) { // ... }
Ideally, something similar to the following is desireable:
public PagedIterable<GHCommit> listCommits(String filePath, ZonedDateTime since, ZonedDateTime until) {
That only lists commits within the specified date range that only affect the given file path.
The text was updated successfully, but these errors were encountered:
Totally missed the queryCommits() method.
queryCommits()
Sorry, something went wrong.
No branches or pull requests
Context
The GitHub API allows listing commits that only affect a file path:
https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
This endpoint also allows further filtering using the
since
anduntil
parameters:None of these are yet present in the library. Currently, listing commits is done thought the
listCommits
method, defined as:And can be used like:
Request
Ideally, something similar to the following is desireable:
That only lists commits within the specified date range that only affect the given file path.
The text was updated successfully, but these errors were encountered: