From bb5e2387be61f1adae9cea8f41c7b964eb05d0d7 Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Sat, 8 Feb 2020 02:50:47 +0900 Subject: [PATCH] Rename --- cli.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cli.go b/cli.go index d1b4246..627bc07 100644 --- a/cli.go +++ b/cli.go @@ -24,35 +24,35 @@ type Labeler interface { } type githubClientImpl struct { - GitHub *github.Client + ghClient *github.Client } func (l githubClientImpl) GetLabel(ctx context.Context, owner string, repo string, name string) (*github.Label, *github.Response, error) { - return l.GitHub.Issues.GetLabel(ctx, owner, repo, name) + return l.ghClient.Issues.GetLabel(ctx, owner, repo, name) } func (l githubClientImpl) EditLabel(ctx context.Context, owner string, repo string, name string, label *github.Label) (*github.Label, *github.Response, error) { - return l.GitHub.Issues.EditLabel(ctx, owner, repo, name, label) + return l.ghClient.Issues.EditLabel(ctx, owner, repo, name, label) } func (l githubClientImpl) CreateLabel(ctx context.Context, owner string, repo string, label *github.Label) (*github.Label, *github.Response, error) { - return l.GitHub.Issues.CreateLabel(ctx, owner, repo, label) + return l.ghClient.Issues.CreateLabel(ctx, owner, repo, label) } func (l githubClientImpl) ListLabels(ctx context.Context, owner string, repo string, opt *github.ListOptions) ([]*github.Label, *github.Response, error) { - return l.GitHub.Issues.ListLabels(ctx, owner, repo, opt) + return l.ghClient.Issues.ListLabels(ctx, owner, repo, opt) } func (l githubClientImpl) DeleteLabel(ctx context.Context, owner string, repo string, name string) (*github.Response, error) { - return l.GitHub.Issues.DeleteLabel(ctx, owner, repo, name) + return l.ghClient.Issues.DeleteLabel(ctx, owner, repo, name) } type githubClientDryRun struct { - GitHub *github.Client + ghClient *github.Client } func (l githubClientDryRun) GetLabel(ctx context.Context, owner string, repo string, name string) (*github.Label, *github.Response, error) { - return l.GitHub.Issues.GetLabel(ctx, owner, repo, name) + return l.ghClient.Issues.GetLabel(ctx, owner, repo, name) } func (l githubClientDryRun) EditLabel(ctx context.Context, owner string, repo string, name string, label *github.Label) (*github.Label, *github.Response, error) { @@ -64,7 +64,7 @@ func (l githubClientDryRun) CreateLabel(ctx context.Context, owner string, repo } func (l githubClientDryRun) ListLabels(ctx context.Context, owner string, repo string, opt *github.ListOptions) ([]*github.Label, *github.Response, error) { - return l.GitHub.Issues.ListLabels(ctx, owner, repo, opt) + return l.ghClient.Issues.ListLabels(ctx, owner, repo, opt) } func (l githubClientDryRun) DeleteLabel(ctx context.Context, owner string, repo string, name string) (*github.Response, error) {