|
24 | 24 | {{end}}
|
25 | 25 | {{else if eq .GetOpType 6}}
|
26 | 26 | {{ $index := index .GetIssueInfos 0}}
|
27 |
| - {{$.i18n.Tr "action.create_issue" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
| 27 | + {{$.i18n.Tr "action.create_issue" ((printf "%s/issues/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
28 | 28 | {{else if eq .GetOpType 7}}
|
29 | 29 | {{ $index := index .GetIssueInfos 0}}
|
30 |
| - {{$.i18n.Tr "action.create_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
| 30 | + {{$.i18n.Tr "action.create_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
31 | 31 | {{else if eq .GetOpType 8}}
|
32 | 32 | {{$.i18n.Tr "action.transfer_repo" .GetContent (.GetRepoLink|Escape) (.ShortRepoPath|Escape) | Str2html}}
|
33 | 33 | {{else if eq .GetOpType 9}}
|
34 | 34 | {{$.i18n.Tr "action.push_tag" (.GetRepoLink|Escape) (.GetRefLink|Escape) (.ShortRepoPath|Escape) .GetTag | Str2html}}
|
35 | 35 | {{else if eq .GetOpType 10}}
|
36 | 36 | {{ $index := index .GetIssueInfos 0}}
|
37 |
| - {{$.i18n.Tr "action.comment_issue" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
| 37 | + {{$.i18n.Tr "action.comment_issue" ((printf "%s/issues/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
38 | 38 | {{else if eq .GetOpType 11}}
|
39 | 39 | {{ $index := index .GetIssueInfos 0}}
|
40 |
| - {{$.i18n.Tr "action.merge_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
| 40 | + {{$.i18n.Tr "action.merge_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
41 | 41 | {{else if eq .GetOpType 12}}
|
42 | 42 | {{ $index := index .GetIssueInfos 0}}
|
43 |
| - {{$.i18n.Tr "action.close_issue" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
| 43 | + {{$.i18n.Tr "action.close_issue" ((printf "%s/issues/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
44 | 44 | {{else if eq .GetOpType 13}}
|
45 | 45 | {{ $index := index .GetIssueInfos 0}}
|
46 |
| - {{$.i18n.Tr "action.reopen_issue" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
| 46 | + {{$.i18n.Tr "action.reopen_issue" ((printf "%s/issues/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
47 | 47 | {{else if eq .GetOpType 14}}
|
48 | 48 | {{ $index := index .GetIssueInfos 0}}
|
49 |
| - {{$.i18n.Tr "action.close_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
| 49 | + {{$.i18n.Tr "action.close_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
50 | 50 | {{else if eq .GetOpType 15}}
|
51 | 51 | {{ $index := index .GetIssueInfos 0}}
|
52 |
| - {{$.i18n.Tr "action.reopen_pull_request" (.GetRepoLink|Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
| 52 | + {{$.i18n.Tr "action.reopen_pull_request" ((printf "%s/pulls/%d" .GetRepoLink $index) |Escape) $index (.ShortRepoPath|Escape) | Str2html}} |
53 | 53 | {{else if eq .GetOpType 16}}
|
54 | 54 | {{ $index := index .GetIssueInfos 0}}
|
55 | 55 | {{$.i18n.Tr "action.delete_tag" (.GetRepoLink|Escape) (.GetTag|Escape) (.ShortRepoPath|Escape) | Str2html}}
|
|
0 commit comments