Skip to content

Commit 1d0b524

Browse files
committed
refactor(combine_prs): rename parameter for brevity
1 parent 6ea32b4 commit 1d0b524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cmd/combine_prs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/github/gh-combine/internal/github"
1313
)
1414

15-
func CombinePRs(ctx context.Context, graphQlClient *api.GraphQLClient, restClient *api.RESTClient, owner, repo string, matchedPRs github.Pulls) error {
15+
func CombinePRs(ctx context.Context, graphQlClient *api.GraphQLClient, restClient *api.RESTClient, owner, repo string, pulls github.Pulls) error {
1616
// Define the combined branch name
1717
workingBranchName := combineBranchName + workingBranchSuffix
1818

@@ -54,7 +54,7 @@ func CombinePRs(ctx context.Context, graphQlClient *api.GraphQLClient, restClien
5454
// Merge all PR branches into the working branch
5555
var combinedPRs []string
5656
var mergeFailedPRs []string
57-
for _, pr := range matchedPRs {
57+
for _, pr := range pulls {
5858
err := mergeBranch(ctx, restClient, owner, repo, workingBranchName, pr.Head.Ref)
5959
if err != nil {
6060
// Check if the error is a 409 merge conflict

0 commit comments

Comments
 (0)