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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃尡 clusterctl: fix typo for GitHub rate limit error #5801
馃尡 clusterctl: fix typo for GitHub rate limit error #5801
Conversation
Welcome @damdo! |
Hi @damdo. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/lgtm |
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.
/lgtm
@@ -215,7 +215,7 @@ func getGitHubClient(configVariablesClient config.VariablesClient) (*github.Clie | |||
// handleGithubErr wraps error messages. | |||
func handleGithubErr(err error, message string, args ...interface{}) error { | |||
if _, ok := err.(*github.RateLimitError); ok { | |||
return errors.New("rate limit for github api has been reached. Please wait one hour or get a personal API tokens a assign it to the GITHUB_TOKEN environment variable") | |||
return errors.New("rate limit for github api has been reached. Please wait one hour or get a personal API tokens and assign it to the GITHUB_TOKEN environment variable") |
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.
return errors.New("rate limit for github api has been reached. Please wait one hour or get a personal API tokens and assign it to the GITHUB_TOKEN environment variable") | |
return errors.New("rate limit for github api has been reached. Please wait one hour or get a personal API token and assign it to the GITHUB_TOKEN environment variable") |
nit, same below
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.
Thanks, included.
Included some new changes caught by @sbueringer. We'll need the |
Good call... /lgtm |
Thx! @damdo Can you please squash the commits? (we're running Prow without squash to preserve information for our release note generation tool) Otherwise lgtm |
Done 馃憤 thanks for the guidance @sbueringer. |
You're welcome :) /lgtm |
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.
@damdo congrats on your first PR on CAPI! Welcome to the team!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR fixes a typo in the GitHub rate limit text.