From e4ff7b8397a8e9c70ac9f22d7cd0caa1eddd991b Mon Sep 17 00:00:00 2001 From: harryzcy Date: Wed, 4 Jan 2023 14:29:08 -0500 Subject: [PATCH] Make function unexported --- cmd/pulls/merge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/pulls/merge.go b/cmd/pulls/merge.go index cf127dc..22ae452 100644 --- a/cmd/pulls/merge.go +++ b/cmd/pulls/merge.go @@ -61,7 +61,7 @@ var CmdPullsMerge = cli.Command{ return err } - idx, err = GetPullIndexByBranch(ctx, branch) + idx, err = getPullIndexByBranch(ctx, branch) if err != nil { return err } @@ -83,7 +83,7 @@ var CmdPullsMerge = cli.Command{ }, } -func GetPullIndexByBranch(ctx *context.TeaContext, branch string) (int64, error) { +func getPullIndexByBranch(ctx *context.TeaContext, branch string) (int64, error) { prs, _, err := ctx.Login.Client().ListRepoPullRequests(ctx.Owner, ctx.Repo, gitea.ListPullRequestsOptions{ State: gitea.StateOpen, })