-
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
Fork/Hook issue #698 #776
Fork/Hook issue #698 #776
Conversation
…rated out - there doesn't need to be this duplicitous 'clarity' given the classes are now separate
…RepositoryHooksClient
Conflicts: Octokit.Reactive/Clients/IObservableRepositoriesClient.cs Octokit.Reactive/Clients/ObservableRepositoriesClient.cs Octokit.Reactive/Octokit.Reactive-Mono.csproj Octokit.Reactive/Octokit.Reactive-MonoAndroid.csproj Octokit.Reactive/Octokit.Reactive-Monotouch.csproj Octokit.Reactive/Octokit.Reactive.csproj Octokit/Octokit-Mono.csproj Octokit/Octokit-Monotouch.csproj Octokit/Octokit-netcore45.csproj Octokit/Octokit.csproj
Conflicts: Octokit.Reactive/Clients/IObservableRepositoriesClient.cs Octokit.Reactive/Clients/ObservableRepositoriesClient.cs Octokit.Reactive/Octokit.Reactive-Mono.csproj Octokit.Reactive/Octokit.Reactive-MonoAndroid.csproj Octokit.Reactive/Octokit.Reactive-Monotouch.csproj Octokit.Tests/OctoKit.Tests-NetCore45.csproj Octokit/Helpers/ApiUrls.cs Octokit/Octokit-Mono.csproj Octokit/Octokit-Monotouch.csproj Octokit/Octokit-Portable.csproj Octokit/Octokit-netcore45.csproj
…nd code analysis.
… implementation of the forks api.
Conflicts: Octokit/Octokit-MonoAndroid.csproj Octokit/Octokit-Monotouch.csproj
Hi @shiftkey thanks for the comments on the code and the design. I have cleaned it up and added the Post method. The 'Changed await AssertEx.Throws' to 'Assert.ThrowsAsync' is wrong. I accidentally also removed the 'await'. They have been added again to the tests in a later commit. I ran a bit out of time here at the last moment, so I hope everything is ok. Please write back in regards to any changes that needs to be added. |
hi @shiftkey, Just wanted to make certain that the code is ok and not missing anything. I did the merge and solved the conflicts. I think that the merge from master must be done close to the merge to master. If the code changes are ok, I will do another merge. |
What is the status of this PR? I really need the features it adds. |
@kristianhald apologies for the delay - I've just gotten back from BUILD so am digging myself out of inbox hell. I'll add this to the list of things to review today. There's a merge conflict with the branch, but we can address that separate to the changes here. |
@shiftkey Great stuff. As long as I know this is on your radar, I can wait a few more cycles :-) |
{ | ||
var client = new RepositoriesClient(Substitute.For<IApiConnection>()); | ||
|
||
await Assert.ThrowsAsync<ArgumentNullException>(async () => await client.Forks.GetAll(null, "name", 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.
💄 the inner async/await pair can be scrubbed from these files, i.e. () => client.Forks....
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.
Gone @ 🔫 point. They wanted soo much to 💤
@kristianhald looking good, just a bit of cleanup for the tests and merging master in and I'm happy to take this. |
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Octokit.Tests.Helpers; |
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 using statement
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.
😔 Has been removed.
Thanks for the review @shiftkey. I will look into the issues tonight after work. |
Conflicts: Octokit/Octokit-MonoAndroid.csproj Octokit/Octokit-Monotouch.csproj
@shiftkey, review changes have been made, including a merge handling the conflicts. |
Assert.Equal(true, forkCreated.Fork); | ||
} | ||
|
||
[IntegrationTest] |
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.
Change this attribute to [OrganizationTest]
so that it only runs if you have the right environment variables set 🤘
Just that one test attribute and this is good to merge! EDIT: whatever, I'm impatient. I'll fix that up on |
Thanks for the amazing work @kristianhald |
Thanks and thanks for the merge. 👌 |
Hi,
First time doing a pull request, so if I have done anything different than expected, then I would be happy to know.
I have tried continuing on the pr for the issue #495, where it was stated that it was missing integration tests.
Therefore, I would like to have some input on the changes made and if I have missed anything, that needs to be changed.
I have done the following changes to the code:
Tasks missing: