-
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
Create RepositoryBranchesClient #1437
Create RepositoryBranchesClient #1437
Conversation
Looks like all the tests passing, just needs some 👀 from someone before merging |
@ryangribble added to my list |
Get in contact with me when you're ready thks
|
public Task<IReadOnlyList<Branch>> GetAllBranches(string owner, string name) | ||
{ | ||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); | ||
Ensure.ArgumentNotNullOrEmptyString(name, "name"); | ||
|
||
return GetAllBranches(owner, name, ApiOptions.None); | ||
|
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.
Unnecessary whitespace 😀
Other than some superfluous whitespace, this looks good to me 👍 |
whitespace fixed, thanks 😀 |
… and EditBranch methods to it, obsoleting the old ones
… RepositoriesClient around for now)
…llBranches, EditBranch methods to it, obsoleting the old ones
df783bc
to
7b0acb1
Compare
I've run through all the tests locally and it's all 💚 I'm happy with these changes 😁 |
In preparation for #1407 this PR creates a new "Branches" client as a child of "Repositories", inline with the GitHub API layout. Existing branch related methods are moved under this client, with the old methods marked as
[Obsolete]
client.Repository.GetBranch()
=>client.Repository.Branch.Get()
client.Repository.GetAllBranches()
=>client.Repository.Branch.GetAll()
client.Repository.GetBranch()
=>client.Repository.Branch.Edit()
Once this is merged, I will work on the new branch protection related methods for #1407