File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
templates/repo/issue/view_content Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1622,6 +1622,7 @@ pulls.reopen_to_merge = Please reopen this pull request to perform a merge.
16221622pulls.cant_reopen_deleted_branch = This pull request cannot be reopened because the branch was deleted.
16231623pulls.merged = Merged
16241624pulls.merged_success = Pull request successfully merged and closed
1625+ pulls.merged_manually_success = Pull request successfully manually merged as %s and closed
16251626pulls.closed = Pull request closed
16261627pulls.manually_merged = Manually merged
16271628pulls.merged_info_text = The branch %s can now be deleted.
Original file line number Diff line number Diff line change 133133 {{if .Issue.PullRequest.HasMerged}}
134134 <div class="item item-section text gt-f1">
135135 <div class="item-section-left">
136- <h3 class="gt-mb-3">{{$.locale.Tr "repo.pulls.merged_success"}}</h3>
136+ <h3 class="gt-mb-3">
137+ {{if and (eq $.Issue.PullRequest.Status 3) (.Issue.PullRequest.MergedCommitID)}}
138+ {{$link := printf "%s/commit/%s" $.Repository.Link (.Issue.PullRequest.MergedCommitID | PathEscape)}}
139+ {{$.locale.Tr "repo.pulls.merged_manually_success"}}
140+ {{else}}
141+ {{$.locale.Tr "repo.pulls.merged_success" (printf "<a rel='nofollow' class='ui sha' href='%s'>%s</a>" ($link | Escape) (ShortSha .Issue.PullRequest.MergedCommitID | Escape) | Str2html}}
142+ {{end}}
143+ </h3>
137144 <div class="merge-section-info">
138- {{$.locale.Tr "repo.pulls.merged_info_text" (printf "<code>%s</code>" .HeadTarget) | Str2html}}
145+ {{$.locale.Tr "repo.pulls.merged_info_text" (printf "<code>%s</code>" ( .HeadTarget | Escape ) | Str2html}}
139146 </div>
140147 </div>
141148 {{if .IsPullBranchDeletable}}
You can’t perform that action at this time.
0 commit comments