Skip to content

Commit 06fff87

Browse files
committed
use AppUrl to replace HTMLURL
1 parent e0d20fb commit 06fff87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/repo/issue/view_content/pull_merge_instruction.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
<div class="ui secondary segment">
66
{{if eq $.Issue.PullRequest.Flow 0}}
77
<div>git checkout -b {{if ne $.Issue.PullRequest.HeadRepo.ID $.Issue.PullRequest.BaseRepo.ID}}{{$.Issue.PullRequest.HeadRepo.OwnerName}}-{{end}}{{$.Issue.PullRequest.HeadBranch}} {{$.Issue.PullRequest.BaseBranch}}</div>
8-
{{/* the only legacy HTMLURL used in template, which doesn't affect users too much and is very diffcult to fix */}}
9-
<div>git pull {{if ne $.Issue.PullRequest.HeadRepo.ID $.Issue.PullRequest.BaseRepo.ID}}{{$.Issue.PullRequest.HeadRepo.HTMLURL}}{{else}}origin{{end}} {{$.Issue.PullRequest.HeadBranch}}</div>
8+
<div>git pull {{if ne $.Issue.PullRequest.HeadRepo.ID $.Issue.PullRequest.BaseRepo.ID}}{{URLJoin AppUrl $.Issue.PullRequest.HeadRepo.Link}}{{else}}origin{{end}} {{$.Issue.PullRequest.HeadBranch}}</div>
109
{{else}}
1110
<div>git fetch origin {{$.Issue.PullRequest.GetGitRefName}}:{{$.Issue.PullRequest.HeadBranch}}</div>
1211
{{end}}

0 commit comments

Comments
 (0)