File tree 2 files changed +10
-2
lines changed
templates/repo/issue/view_content 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.
1622
1622
pulls.cant_reopen_deleted_branch = This pull request cannot be reopened because the branch was deleted.
1623
1623
pulls.merged = Merged
1624
1624
pulls.merged_success = Pull request successfully merged and closed
1625
+ pulls.merged_manually_success = Pull request successfully manually merged as %s and closed
1625
1626
pulls.closed = Pull request closed
1626
1627
pulls.manually_merged = Manually merged
1627
1628
pulls.merged_info_text = The branch %s can now be deleted.
Original file line number Diff line number Diff line change 133
133
{{if .Issue.PullRequest.HasMerged}}
134
134
<div class="item item-section text gt-f1">
135
135
<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>
137
144
<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}}
139
146
</div>
140
147
</div>
141
148
{{if .IsPullBranchDeletable}}
You can’t perform that action at this time.
0 commit comments