Skip to content
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

Updated git data commit response with signature verification object #1398

Merged
merged 7 commits into from
Jun 26, 2016

Conversation

Sarmad93
Copy link
Contributor

Fixes #1254
Hi @ryangribble @shiftkey could you plz review this code 😃 Regarding Integration test i am little confused where should i put this method, is it fine here in CommitsClientTests ? And what do you think of this integration test, right now this test is passing on repository which is of my test account. Is it fine here to hard code(string literals) repository parameter? Your feedback on this is much needed so that we can make improvement to this.

@@ -1,4 +1,6 @@
using System.Collections.Generic;
using Octokit.Internal;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💄 reorder these so System.* is before the rest...

@shiftkey
Copy link
Member

@Sarmad93 looking good, just a few little things to clean up. Love that integration test 😍

@Sarmad93
Copy link
Contributor Author

👍 for review. Fixing this.

@@ -27,7 +27,9 @@ public static class AcceptHeaders
public const string MigrationsApiPreview = "application/vnd.github.wyandotte-preview+json";

public const string ReactionsPreview = "application/vnd.github.squirrel-girl-preview";


public const string SignatureVerification = "application/vnd.github.cryptographer-preview+sha";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe name this SignatureVerificationPreview just for consistency with all the other preview headers?

@ryangribble
Copy link
Contributor

I'll let @shiftkey hit the button since he reviewed this one, but it looks good to me @Sarmad93

@Sarmad93
Copy link
Contributor Author

Sarmad93 commented Jun 21, 2016

Right..@ryangribble thanks for the review. 😄

using System.Globalization;
using Octokit.Internal;

namespace Octokit.Models.Response
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a coding convention here that I guess needs to be documented properly. Despite these files living in Octokit/Models/Responses the corresponding namespace for these is just Octokit. This means new using statements are unnecessary for consumers (and for this PR).

@shiftkey
Copy link
Member

@Sarmad93 @ryangribble thanks for waiting for me. Just that one comment and I think this is good to go!

@@ -1,5 +1,6 @@
using System.Threading.Tasks;
using Octokit;
using Octokit.Models.Response;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned elsewhere, this should be unnecessary after renaming the namespace...

@Sarmad93
Copy link
Contributor Author

@shiftkey

thanks for waiting for me

yeh no worries. i already knew your absence when i saw your tweet about your off for a week 😉

@shiftkey
Copy link
Member

@Sarmad93 looks good, thanks for this!

@shiftkey shiftkey merged commit 792bc3f into octokit:master Jun 26, 2016
@Sarmad93
Copy link
Contributor Author

200

@Sarmad93 Sarmad93 deleted the SignatureVerification-GitData branch June 27, 2016 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants