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

[MER-2188] Use gh auth token if it's available #198

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Conversation

draftcode
Copy link
Contributor

@draftcode draftcode commented Aug 21, 2023

No description provided.

@aviator-app
Copy link
Contributor

aviator-app bot commented Aug 21, 2023

Current Aviator status

Aviator will automatically update this comment as the status of the PR changes.
Comment /aviator refresh to force Aviator to re-examine your PR (or learn about other /aviator commands).

This PR was merged using Aviator.


See the real-time status of this PR on the Aviator webapp.

Copy link
Contributor

@twavv twavv left a comment

Choose a reason for hiding this comment

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

Looks good. I think @ErichKramer looked into this at some point and identified some reason it might not actually work, so we should get his input on this.

@@ -149,6 +152,22 @@ func checkCliVersion() {
var once sync.Once
var lazyGithubClient *gh.Client

func discoverGitHubAPIToken() string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably just makes sense to call this as part of getClient and return the "github token must be set" error from getClient.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@aviator-app aviator-app bot merged commit 1070c30 into master Aug 22, 2023
3 checks passed
@aviator-app aviator-app bot deleted the use_gh_token branch August 22, 2023 23:53
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