Skip to content

Commit 3dd42aa

Browse files
committed
fix backport
1 parent db9fe86 commit 3dd42aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/repository/merge_upstream.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package repository
55

66
import (
7+
"context"
78
"errors"
89
"fmt"
910

@@ -17,7 +18,7 @@ import (
1718
)
1819

1920
// MergeUpstream merges the base repository's default branch into the fork repository's current branch.
20-
func MergeUpstream(ctx reqctx.RequestContext, doer *user_model.User, repo *repo_model.Repository, branch string) (mergeStyle string, err error) {
21+
func MergeUpstream(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, branch string) (mergeStyle string, err error) {
2122
if err = repo.MustNotBeArchived(); err != nil {
2223
return "", err
2324
}
@@ -84,7 +85,7 @@ type UpstreamDivergingInfo struct {
8485
}
8586

8687
// GetUpstreamDivergingInfo returns the information about the divergence between the fork repository's branch and the base repository's default branch.
87-
func GetUpstreamDivergingInfo(ctx context.Context, forkRepo *repo_model.Repository, forkBranch string) (*BranchDivergingInfo, error) {
88+
func GetUpstreamDivergingInfo(ctx context.Context, forkRepo *repo_model.Repository, forkBranch string) (*UpstreamDivergingInfo, error) {
8889
if !forkRepo.IsFork {
8990
return nil, util.NewInvalidArgumentErrorf("repo is not a fork")
9091
}

0 commit comments

Comments
 (0)