-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement Issue Timeline preview API #1435
Conversation
All tests are now passing 🎉 so this is ready for someone to cast their 👀 over 😁 |
This is all looking rather 💎 to me! Ive run the integration tests too 👍 One thing I noticed was a quick count of the "events" listed in the timeline API doc (21) is a couple more than values declared in the |
/// A client for GitHub's Issue Timeline API. | ||
/// </summary> | ||
/// <remarks> | ||
/// See the <a href="http://developer.github.com/v3/issues/timeline/">Issue Timeline API documentation</a> for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpick but the doc comments added in this PR have a mix of http and https on the URLs... 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's very odd as I'm pretty sure I copied those from the API documentation...I'll fix it and check the docs if there might something pointing to just http
.
Ah, the original comment I copied from (in IIssuesEventsClient)
has http
instead of https
...that'll teach me for blindly copy-pasting 😄
@alfhenrik since version 0.21.1 every "owner/name" method has overload that use repository id instead of owner/name pair. Could you add it in your PR? @ryangribble not sure, but I think that now every new clients have to have repostoryId overload for each owner/name method, aren't they? |
Thanks @dampir, I'll add in the necessary overloads and tests |
Good pickup, I actualy realised this myself overnight (the things you think about while going to sleep, lol!) Yes we should be adding I also realised, we should be adding paging support to any |
Looking at the API docs, it doesn't look like the endpoint supports paging, but I'll do some Fiddlering to see if it might actually support it, just being undocumented. Well, Fiddlering confirms that the endpoint does support paging, I'll add that in as well |
OK, this should now be good to go |
Nice work! Everything looking good, ill just pull down your branch and run through the integration tests 👍 |
@@ -341,6 +341,16 @@ public static Uri IssueReactions(int repositoryId, int number) | |||
return "repositories/{0}/issues/{1}/reactions".FormatUri(repositoryId, number); | |||
} | |||
|
|||
public static Uri IssueTimeline(string owner, string repo, int number) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
XmlDoc comment on this function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
I just noticed missing XmlDoc comments on the 2 new functions added to Once that's done I'm good to merge 😀 |
Pretty sure that TravisCI failure isn't because of me...looks like that random build failure we've seen before... |
Adding the Issue Timeline API client as it is now in preview (and we have a need for it for an internal project).
Fixes #1436