Make function unexported

This commit is contained in:
harryzcy 2023-01-04 14:29:08 -05:00
parent bff965e84c
commit e4ff7b8397
No known key found for this signature in database
GPG Key ID: E3C2287691E40E35

View File

@ -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,
})