-
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
[WIP] Repository Contents Client #434
Conversation
I moved |
Also, if you want me to strip the first commit (changed |
👍
👍 |
@@ -80,6 +79,7 @@ public interface IObservableRepositoriesClient | |||
/// <param name="owner">The owner of the repository</param> | |||
/// <param name="name">The name of the repository</param> | |||
/// <returns></returns> | |||
[Obsolete("This method has been obsoleted by Contents.GetReadme. Please use that instead.")] |
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.
I do like this approach as we get towards 1.0 and better structure the clients. Thanks!
@shiftkey Does that 👍 mean that you want me to strip the commit? 😝 |
My bad, pre-coffee me can be unclear. No, that's fine as-is. |
Uuuh, I just saw #231. It hasn't been updated in 3 months. Should I still follow through with this or wait for the other PR to land? |
@khellang 👍 to keep going |
To get the actual content, how do you feel about having a single method |
Actually, the more I think about it, the more I'm leaning towards differentiating |
Hey guys! Sorry I haven't been able to pull this through. I might have some cycles this weekend to take a look at it again. @shiftkey Do we really want to do it this way? E.g. get parent folder and check whether it's a file/directory/symlink etc. or do we just want to make the user check or know up front? |
@khellang let's do the simplest thing that could possibly work and iterate from there
How does that feel? |
@shiftkey Yes! Let's take the pragmatic approach 😄 It felt a bit wrong to do 2 API calls for each requested file/directory. |
One note on this, you can tell it's an item based on the
|
Is this still being worked on? |
@thedillonb signs point to no. I think it has a way to go anyway, because we were still discussing how the API should look even then... |
👍 |
What's the current blocker? Is there a punch list of what needs doing? |
@drusellers I'm going to see if I can spend the next couple of weeks on clearing out the backlog of PRs - see the next major release here https://github.com/octokit/octokit.net/milestones/v0.6%20-%20Chocolate-Covered%20Yaks This one didn't make the cut because I'm still not sold on the API. I need to think on this some more before I can work out a way through it. Let me know if this is something that you're interested in contributing to, and I'll bump it up my priority list to revisit. |
I can also punch the code if we nail the desired API down 😄 |
@khellang will you be at Summit? If so, that'll give me a hard deadline to put pen to paper... 😛 |
@shiftkey Yep 😄 Looking forward to the spec. then 😉 |
Just in case someone really wants to use new Contents API before the official merge is done, I created an implementation for delete/create/update APIs. It is very raw, but at least you don't have to it yourself. Here is a fork: https://github.com/VirtoCommerce/octokit.net |
Just an update. i'm looking into this right now and will push a new PR that incorporates these PRs. |
👍 |
Great, can't wait to see the updates! |
Ok, I'm going to take this in a slightly different direction. Rather than have different types for Submodule, File, Directory, I'm just going to have a single type that has the union of all the properties. The properties not in use will simply be null in the response. This ends up keeping things really simple. I'll post a PR soon for comment. |
👍 |
Closing in favor of #649 |
Figured I might as well open this PR to get some feedback right away 😄