Skip to content
New issue

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

How to get a tree of recent commits / pulls of a repository #469

Closed
BoasE opened this issue Apr 23, 2014 · 2 comments
Closed

How to get a tree of recent commits / pulls of a repository #469

BoasE opened this issue Apr 23, 2014 · 2 comments

Comments

@BoasE
Copy link

BoasE commented Apr 23, 2014

Hi

I'm playing around with the octokit framework. Some things are really easy to achieve, otherseem to be not so intuitive.

One thing i'm currently having problems with, is how to get recent commits or a commit tree within a specific timerange of a given repository and / or branch.

I assume that i should use the git database client like:

var commits = await octokitClient.GitDatabase.Commit.Get("Owner", "Project","Magic_Reference");

But I'm not sure what this "reference" parameter is about.

Can someone give me a hint or even more better an example?

@khellang
Copy link
Contributor

Getting repository commits is not implemented yet. See #333. Feel free to give implementing it a shot and send a PR 😉

The method you've found can also get a specific commit, but with a lot less data than the repository commit endpoint. The reference parameter is actually a commit SHA, I think it's just badly named.

Also check out the documentation for repository commits and git data commits. The API should match the documentation pretty well.

@haagenson
Copy link
Contributor

This was implemented on #529 and merged yesterday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants