aboutsummaryrefslogtreecommitdiffstats
path: root/modules/migration/pullrequest.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-08-22 05:05:48 +0800
committerGitHub <noreply@github.com>2024-08-21 21:05:48 +0000
commit0299bb97f038685aee794a992fa4a9f5cf83652e (patch)
tree24aff54242d6ef43c62a53d9b137445937c31e61 /modules/migration/pullrequest.go
parent40036b610224338ff730acb6e182aa8a6ebdb009 (diff)
downloadgitea-0299bb97f038685aee794a992fa4a9f5cf83652e.tar.gz
gitea-0299bb97f038685aee794a992fa4a9f5cf83652e.zip
Use correct function name (#31887)
Diffstat (limited to 'modules/migration/pullrequest.go')
-rw-r--r--modules/migration/pullrequest.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/migration/pullrequest.go b/modules/migration/pullrequest.go
index 4e7500f0d6..1435991bd2 100644
--- a/modules/migration/pullrequest.go
+++ b/modules/migration/pullrequest.go
@@ -45,7 +45,7 @@ func (p *PullRequest) GetContext() DownloaderContext { return p.Context }
// IsForkPullRequest returns true if the pull request from a forked repository but not the same repository
func (p *PullRequest) IsForkPullRequest() bool {
- return p.Head.RepoPath() != p.Base.RepoPath()
+ return p.Head.RepoFullName() != p.Base.RepoFullName()
}
// GetGitRefName returns pull request relative path to head
@@ -62,8 +62,8 @@ type PullRequestBranch struct {
OwnerName string `yaml:"owner_name"`
}
-// RepoPath returns pull request repo path
-func (p PullRequestBranch) RepoPath() string {
+// RepoFullName returns pull request repo full name
+func (p PullRequestBranch) RepoFullName() string {
return fmt.Sprintf("%s/%s", p.OwnerName, p.RepoName)
}