Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: Allow custom Git OAuth URLs #4758

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

Merged
merged 1 commit into from
Oct 27, 2022
Merged

fix: Allow custom Git OAuth URLs #4758

merged 1 commit into from
Oct 27, 2022

Conversation

kylecarbs
Copy link
Member

Fixes an issue reported in Discord where custom endpoints weren't working.

@kylecarbs kylecarbs self-assigned this Oct 26, 2022
AuthURL string `json:"auth_url"`
TokenURL string `json:"token_url"`
Regex string `json:"regex"`
Scopes []string `json:"scopes"`
Copy link
Member

Choose a reason for hiding this comment

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

Should we consider omitempty here? I noticed typegen needs to be run for this PR, which adds the TypeScript entry for scopes, however, if the API doesn't ensure that Scopes: nil becomes, Scopes: []string{}, then we're lying to TypeScript (at which point using omitempty is appropriate).

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh, good point!

@kylecarbs kylecarbs requested a review from a team as a code owner October 26, 2022 14:04
@kylecarbs kylecarbs requested review from Kira-Pilot and removed request for a team October 26, 2022 14:04
@kylecarbs kylecarbs force-pushed the customtoken branch 2 times, most recently from e0018c0 to 5d9882f Compare October 26, 2022 14:37
Fixes an issue reported in Discord where custom endpoints
weren't working.
@kylecarbs kylecarbs merged commit b34a67e into main Oct 27, 2022
@kylecarbs kylecarbs deleted the customtoken branch October 27, 2022 17:38
@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants