Skip to content

Commit

Permalink
Merge pull request #203 from saschagrunert/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
k8s-ci-robot committed May 19, 2023
2 parents fa16065 + 47b88a7 commit 480873d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ func (r *Repo) AddRemote(name, owner, repo string) error {
RunSilentSuccess()
}

// PushToRemote push the current branch to a spcified remote, but only if the
// PushToRemote push the current branch to a specified remote, but only if the
// repository is not in dry run mode
func (r *Repo) PushToRemote(remote, remoteBranch string) error {
args := []string{"push", "--set-upstream"}
Expand Down
4 changes: 2 additions & 2 deletions github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import (
)

const (
// TokenEnvKey is the default GitHub token environemt variable key
// TokenEnvKey is the default GitHub token environment variable key
TokenEnvKey = "GITHUB_TOKEN"
// GitHubURL Prefix for github URLs
GitHubURL = "https://github.com/"
Expand Down Expand Up @@ -825,7 +825,7 @@ func (g *GitHub) CreateIssue(
issueRequest.Title = &title
issueRequest.Body = &body

// Create the issue using the cliente
// Create the issue using the client
return g.Client().CreateIssue(context.Background(), owner, repo, issueRequest)
}

Expand Down
2 changes: 1 addition & 1 deletion sign/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (*defaultImpl) EnvDefault(key, def string) string {
// oidc token from them.
func (d *defaultImpl) TokenFromProviders(ctx context.Context, logger *logrus.Logger) (string, error) {
if !d.IdentityProvidersEnabled(ctx) {
logger.Warn("No OIDC provider enabled. Token cannot be obtained autmatically.")
logger.Warn("No OIDC provider enabled. Token cannot be obtained automatically.")
return "", nil
}

Expand Down
2 changes: 1 addition & 1 deletion test/integration/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ func TestSetURLSuccess(t *testing.T) {
testRepo := newTestRepo(t)
defer testRepo.cleanup(t)

const remote = "https://exmaple.com"
const remote = "https://example.com"
require.Nil(t, testRepo.sut.SetURL(git.DefaultRemote, remote))
remotes, err := testRepo.sut.Remotes()
require.Nil(t, err)
Expand Down

0 comments on commit 480873d

Please sign in to comment.