mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Use correct function name (#31887)
This commit is contained in:
		| @@ -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 | // IsForkPullRequest returns true if the pull request from a forked repository but not the same repository | ||||||
| func (p *PullRequest) IsForkPullRequest() bool { | 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 | // GetGitRefName returns pull request relative path to head | ||||||
| @@ -62,8 +62,8 @@ type PullRequestBranch struct { | |||||||
| 	OwnerName string `yaml:"owner_name"` | 	OwnerName string `yaml:"owner_name"` | ||||||
| } | } | ||||||
|  |  | ||||||
| // RepoPath returns pull request repo path | // RepoFullName returns pull request repo full name | ||||||
| func (p PullRequestBranch) RepoPath() string { | func (p PullRequestBranch) RepoFullName() string { | ||||||
| 	return fmt.Sprintf("%s/%s", p.OwnerName, p.RepoName) | 	return fmt.Sprintf("%s/%s", p.OwnerName, p.RepoName) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user