-
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 Repository Pages client #1061
Conversation
Let's stick to things which are documented for now.
I think I'm fine with using |
912f3ad
to
15c8ff9
Compare
|
ee3ec4e
to
0435cd2
Compare
Should be done then. Thanks for the help |
🎉 The errors are not my fault (I think 😄 ) |
Holding off on merging this until I can give a better answer on what is happening with #1062 |
👍 |
@@ -9,6 +11,7 @@ namespace Octokit | |||
#if !NETFX_CORE | |||
[Serializable] | |||
#endif | |||
[DebuggerDisplay("{DebuggerDisplay,nq}")] |
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.
Were these raised because of specific errors with tests?
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.
Since I added the Error Property the conventon test picked it up
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.
Uh, cool? 👍
Found out why #1062 is occurring and it's an orthogonal discussion to this. Just a couple of comments about naming things (favouring simpler wherever possible). Everything else looks 💎 |
/// </summary> | ||
public PagesBuildStatus Status { get; protected set; } | ||
/// <summary> | ||
/// |
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.
Can has some words?
@shiftkey it is ready for a re-review |
/// See the <a href="https://developer.github.com/v3/repos/pages/#list-latest-pages-build">API documentation</a> for more information. | ||
/// </remarks> | ||
/// <returns></returns> | ||
public IObservable<PagesBuild> GetLatestBuild(string owner, string repositoryName) |
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.
This will need a rename (and to call the right method on IRepositoryPagesClient
)
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.
Sorry I missed that :sad:
There's also a merge conflict that needs a bit of love here... |
…IRepositoryPagesClient
In my defense my machine has been having issues
@shiftkey look quick, it is still green 😄 |
@M-Zuber quick! merged! |
Implement Repository Pages client
😆 Thank you for all help. This PR helped me much better understand the structure of octokit. |
|
||
client.Get("fake", "repo"); | ||
|
||
connection.Received().Get<Page>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/pages"), null); |
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.
Not sure how these tests should have passed before the merge, as I managed to break an old PR when I merged master
back in. See 5ca6633 for the fix to these tests.
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.
Doh!
I was going to remove that. Should I open a new PR?
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.
Nah, I'll merge that first pass at the documentation into master
- so the fix will land there soon.
Fixes #1033
TODO:
Questions:
Should it be included?
ApiError
class. Does that get included in the model?Drawing attention
DebuggerDisplay
?