From 5fdbb8893f1fd35d2f513cd821ee408bd1ae7295 Mon Sep 17 00:00:00 2001 From: Javier Carrillo Date: Mon, 26 Aug 2024 17:04:26 -0400 Subject: [PATCH] chore: (DSO-2004) Update commentGithub package name --- cmd/root.go | 6 +++--- src/comments/comments.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index b44149d..99d0e4e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -3,20 +3,20 @@ package cmd import ( "os" - commentGithub "github.com/gbh-tech/github-pr-commenter/src/comments" + comments "github.com/gbh-tech/github-pr-commenter/src/comments" "github.com/charmbracelet/log" "github.com/spf13/cobra" ) -var GithubClient commentGithub.GithubClient +var GithubClient comments.GithubClient var RootCmd = &cobra.Command{ Use: "commenter", Short: "A CLI to perform operation on GitHub PR issues.", PersistentPreRun: func(cmd *cobra.Command, args []string) { token := os.Getenv("GITHUB_TOKEN") - err := commentGithub.NewClient(token, &GithubClient) + err := comments.NewClient(token, &GithubClient) if err != nil { log.Fatalf("Error initializing GitHub client: %v", err) } diff --git a/src/comments/comments.go b/src/comments/comments.go index 2221711..f469973 100644 --- a/src/comments/comments.go +++ b/src/comments/comments.go @@ -1,4 +1,4 @@ -package githubComments +package comments import ( "context"