|
17 | 17 | {{else if eq .GetOpType 2}}
|
18 | 18 | {{$.i18n.Tr "action.rename_repo" (.GetContent|Escape) (.GetRepoLink|Escape) (.ShortRepoPath|Escape) | Str2html}}
|
19 | 19 | {{else if eq .GetOpType 5}}
|
20 |
| - {{ $branchLink := .GetBranch | PathEscapeSegments | Escape}} |
21 | 20 | {{if .Content}}
|
22 |
| - {{$.i18n.Tr "action.commit_repo" (.GetRepoLink|Escape) $branchLink (Escape .GetBranch) (.ShortRepoPath|Escape) | Str2html}} |
| 21 | + {{$.i18n.Tr "action.commit_repo" (.GetRepoLink|Escape) (.GetRefLink|Escape) (Escape .GetBranch) (.ShortRepoPath|Escape) | Str2html}} |
23 | 22 | {{else}}
|
24 |
| - {{$.i18n.Tr "action.create_branch" (.GetRepoLink|Escape) $branchLink (Escape .GetBranch) (.ShortRepoPath|Escape) | Str2html}} |
| 23 | + {{$.i18n.Tr "action.create_branch" (.GetRepoLink|Escape) (.GetRefLink|Escape) (Escape .GetBranch) (.ShortRepoPath|Escape) | Str2html}} |
25 | 24 | {{end}}
|
26 | 25 | {{else if eq .GetOpType 6}}
|
27 | 26 | {{ $index := index .GetIssueInfos 0}}
|
|
32 | 31 | {{else if eq .GetOpType 8}}
|
33 | 32 | {{$.i18n.Tr "action.transfer_repo" .GetContent (.GetRepoLink|Escape) (.ShortRepoPath|Escape) | Str2html}}
|
34 | 33 | {{else if eq .GetOpType 9}}
|
35 |
| - {{ $tagLink := .GetTag | PathEscapeSegments | Escape}} |
36 |
| - {{$.i18n.Tr "action.push_tag" (.GetRepoLink|Escape) $tagLink (.ShortRepoPath|Escape) .GetTag | Str2html}} |
| 34 | + {{$.i18n.Tr "action.push_tag" (.GetRepoLink|Escape) (.GetRefLink|Escape) (.ShortRepoPath|Escape) .GetTag | Str2html}} |
37 | 35 | {{else if eq .GetOpType 10}}
|
38 | 36 | {{ $index := index .GetIssueInfos 0}}
|
39 | 37 | {{$.i18n.Tr "action.comment_issue" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
|
|
59 | 57 | {{ $index := index .GetIssueInfos 0}}
|
60 | 58 | {{$.i18n.Tr "action.delete_branch" (.GetRepoLink|Escape) (.GetBranch|Escape) (.ShortRepoPath|Escape) | Str2html}}
|
61 | 59 | {{else if eq .GetOpType 18}}
|
62 |
| - {{ $branchLink := .GetBranch | PathEscapeSegments}} |
63 |
| - {{$.i18n.Tr "action.mirror_sync_push" (.GetRepoLink|Escape) $branchLink (.GetBranch|Escape) (.ShortRepoPath|Escape) | Str2html}} |
| 60 | + {{$.i18n.Tr "action.mirror_sync_push" (.GetRepoLink|Escape) (.GetRefLink|Escape) (.GetBranch|Escape) (.ShortRepoPath|Escape) | Str2html}} |
64 | 61 | {{else if eq .GetOpType 19}}
|
65 |
| - {{$.i18n.Tr "action.mirror_sync_create" (.GetRepoLink|Escape) (.GetBranch|Escape) (.ShortRepoPath|Escape) | Str2html}} |
| 62 | + {{$.i18n.Tr "action.mirror_sync_create" (.GetRepoLink|Escape) (.GetRefLink|Escape) (.GetBranch|Escape) (.ShortRepoPath|Escape) | Str2html}} |
66 | 63 | {{else if eq .GetOpType 20}}
|
67 | 64 | {{$.i18n.Tr "action.mirror_sync_delete" (.GetRepoLink|Escape) (.GetBranch|Escape) (.ShortRepoPath|Escape) | Str2html}}
|
68 | 65 | {{else if eq .GetOpType 21}}
|
|
75 | 72 | {{ $index := index .GetIssueInfos 0}}
|
76 | 73 | {{$.i18n.Tr "action.comment_pull" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}}
|
77 | 74 | {{else if eq .GetOpType 24}}
|
78 |
| - {{ $branchLink := .GetBranch | PathEscapeSegments | Escape}} |
79 | 75 | {{ $linkText := .Content | RenderEmoji }}
|
80 |
| - {{$.i18n.Tr "action.publish_release" (.GetRepoLink|Escape) $branchLink (.ShortRepoPath|Escape) $linkText | Str2html}} |
| 76 | + {{$.i18n.Tr "action.publish_release" (.GetRepoLink|Escape) (.GetRefLink|Escape) (.ShortRepoPath|Escape) $linkText | Str2html}} |
81 | 77 | {{else if eq .GetOpType 25}}
|
82 | 78 | {{ $index := index .GetIssueInfos 0}}
|
83 | 79 | {{ $reviewer := index .GetIssueInfos 1}}
|
|
0 commit comments