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

chore: Fixed typo in 'GetGitHubClient()' function name #2625

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (
viper.Set("WORKDIR", workdir)
}
}
client := utils.GetGtihubClient(ctx)
client := utils.GetGitHubClient(ctx)
templates, err := bootstrap.ListSamples(ctx, client)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion internal/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func Run(ctx context.Context, starter StarterTemplate, fsys afero.Fs, options ..
}
// 0. Download starter template
if len(starter.Url) > 0 {
client := utils.GetGtihubClient(ctx)
client := utils.GetGitHubClient(ctx)
if err := downloadSample(ctx, client, starter.Url, fsys); err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions internal/utils/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (
githubOnce sync.Once
)

func GetGtihubClient(ctx context.Context) *github.Client {
func GetGitHubClient(ctx context.Context) *github.Client {
githubOnce.Do(func() {
var client *http.Client
if token := os.Getenv("GITHUB_TOKEN"); len(token) > 0 {
Expand All @@ -36,7 +36,7 @@ const (
)

func GetLatestRelease(ctx context.Context) (string, error) {
client := GetGtihubClient(ctx)
client := GetGitHubClient(ctx)
release, _, err := client.Repositories.GetLatestRelease(ctx, CLI_OWNER, CLI_REPO)
if err != nil {
return "", errors.Errorf("Failed to fetch latest release: %w", err)
Expand Down
2 changes: 1 addition & 1 deletion tools/bumpdoc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func updateRefDoc(ctx context.Context, path string, stdin io.Reader) error {
return nil
}
fmt.Fprintf(os.Stderr, "Updating reference doc: %s\n", path)
client := utils.GetGtihubClient(ctx)
client := utils.GetGitHubClient(ctx)
branch := "cli/ref-doc"
master := "master"
if err := shared.CreateGitBranch(ctx, client, SUPABASE_OWNER, SUPABASE_REPO, branch, master); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tools/changelog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func main() {
}

func showChangeLog(ctx context.Context, slackChannel string) error {
client := utils.GetGtihubClient(ctx)
client := utils.GetGitHubClient(ctx)
releases, _, err := client.Repositories.ListReleases(ctx, utils.CLI_OWNER, utils.CLI_REPO, &github.ListOptions{})
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion tools/publish/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func publishPackages(ctx context.Context, version string, beta bool) error {
config.Description += " (Beta)"
filename += "-beta"
}
client := utils.GetGtihubClient(ctx)
client := utils.GetGitHubClient(ctx)
if err := updatePackage(ctx, client, HOMEBREW_REPO, filename+".rb", brewFormulaTemplate, config); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion tools/selfhost/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type ComposeFile struct {
}

func updateSelfHosted(ctx context.Context, branch string) error {
client := utils.GetGtihubClient(ctx)
client := utils.GetGitHubClient(ctx)
master := "master"
if err := shared.CreateGitBranch(ctx, client, SUPABASE_OWNER, SUPABASE_REPO, branch, master); err != nil {
return err
Expand Down