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

Adding credential-authorization get endpoints #2556

Merged
merged 6 commits into from
Sep 12, 2022

Conversation

JonruAlveus
Copy link
Collaborator

fixes #2421
I do not have access to a github enterprise account for testing, so I didn't write any integration tests.

@JonruAlveus JonruAlveus requested review from nickfloyd and timrogers and removed request for nickfloyd August 26, 2022 05:34
Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

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

@JonruAlveus This is another great addition! Thank you ❤️ - would you mind running the async pagination generators to ensure this and other newly added APIs are covered on the paging front?

dotnet run --project Octokit.Generators

I am planning on integrating this in the build command or even in CI, but I wanted to have it run manually so that we (the humans) could validate that it was doing what it is supposed to do.

@JonruAlveus
Copy link
Collaborator Author

dotnet run --project Octokit.Generators

Welcome back :) Thanks for the review, I've run the update and there appears to be a large diff because the new class has the method in alphabetical order, which it wasn't before.

Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

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

Sorry I missed a couple of items regarding method comments in the ApiUtil

@@ -4457,5 +4457,15 @@ public static Uri Meta()
{
return "meta".FormatUri();
}

public static Uri AllOrganizationCredentials(string org)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you also mind adding method comments here? Sorry I completely missed this during the initial review.

return "orgs/{0}/credential-authorizations".FormatUri(org);
}

public static Uri AllOrganizationCredentials(string org, string login)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as with public static Uri AllOrganizationCredentials(string org)

@nickfloyd
Copy link
Contributor

@JonruAlveus Let me know if you'd like me to knock these out if you don't have the time. I'd like to get these changes in for the next release and would be glad to take them over if you are strapped on bandwidth. I'll need push access to your fork. Let me know when you get the chance!

@JonruAlveus
Copy link
Collaborator Author

JonruAlveus commented Sep 12, 2022

@nickfloyd Hi! I’m currently overseas so I’ve added you as a collaborator on my fork. Feel free to knock these out :)

I’m not even going to attempt coding on an iPad 🤣

@nickfloyd nickfloyd self-requested a review September 12, 2022 19:07
Copy link
Contributor

@nickfloyd nickfloyd left a comment

Choose a reason for hiding this comment

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

👍 LGTM!

@nickfloyd nickfloyd merged commit 063e85e into octokit:main Sep 12, 2022
@nickfloyd
Copy link
Contributor

release_notes: Adds credential-authorization get endpoints

@AmandaP87
Copy link

fixes #2421 I do not have access to a github enterprise account for testing, so I didn't write any integration tests.

U crazy

@nickfloyd nickfloyd added Type: Feature New feature or request and removed category: feature labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Question on API getting access tokens
3 participants