Skip to content

Commit 0299bb9

Browse files
authored
Use correct function name (#31887)
1 parent 40036b6 commit 0299bb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: modules/migration/pullrequest.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (p *PullRequest) GetContext() DownloaderContext { return p.Context }
4545

4646
// IsForkPullRequest returns true if the pull request from a forked repository but not the same repository
4747
func (p *PullRequest) IsForkPullRequest() bool {
48-
return p.Head.RepoPath() != p.Base.RepoPath()
48+
return p.Head.RepoFullName() != p.Base.RepoFullName()
4949
}
5050

5151
// GetGitRefName returns pull request relative path to head
@@ -62,8 +62,8 @@ type PullRequestBranch struct {
6262
OwnerName string `yaml:"owner_name"`
6363
}
6464

65-
// RepoPath returns pull request repo path
66-
func (p PullRequestBranch) RepoPath() string {
65+
// RepoFullName returns pull request repo full name
66+
func (p PullRequestBranch) RepoFullName() string {
6767
return fmt.Sprintf("%s/%s", p.OwnerName, p.RepoName)
6868
}
6969

0 commit comments

Comments
 (0)