1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

Fix some missed GitHeadRefName when renaming (#35102)

This commit is contained in:
Lunny Xiao
2025-07-17 22:01:11 +08:00
committed by GitHub
parent de1114b4e8
commit 8ee96039aa
3 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ func (p *PullRequest) IsForkPullRequest() bool {
return p.Head.RepoFullName() != p.Base.RepoFullName()
}
// GetGitRefName returns pull request relative path to head
// GetGitHeadRefName returns pull request relative path to head
func (p PullRequest) GetGitHeadRefName() string {
return fmt.Sprintf("%s%d/head", git.PullPrefix, p.Number)
}