@ -17,41 +17,39 @@
{{ else if eq .GetOpType 2 }}
{{ else if eq .GetOpType 2 }}
{{ $ .i18n .Tr "action.rename_repo" ( .GetContent | Escape ) ( .GetRepoLink | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.rename_repo" ( .GetContent | Escape ) ( .GetRepoLink | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 5 }}
{{ else if eq .GetOpType 5 }}
{{ $ branchLink : = .GetBranch | PathEscapeSegments | Escape }}
{{ if .Content }}
{{ if .Content }}
{{ $ .i18n .Tr "action.commit_repo" ( .GetRepoLink | Escape ) $ branchLink ( Escape .GetBranch ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.commit_repo" ( .GetRepoLink | Escape ) ( .GetRefLink | Escape ) ( Escape .GetBranch ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ else }}
{{ else }}
{{ $ .i18n .Tr "action.create_branch" ( .GetRepoLink | Escape ) $ branchLink ( Escape .GetBranch ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.create_branch" ( .GetRepoLink | Escape ) ( .GetRefLink | Escape ) ( Escape .GetBranch ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ end }}
{{ end }}
{{ else if eq .GetOpType 6 }}
{{ else if eq .GetOpType 6 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.create_issue" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.create_issue" ( ( printf "%s/issues/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 7 }}
{{ else if eq .GetOpType 7 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.create_pull_request" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.create_pull_request" ( ( printf "%s/pulls/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 8 }}
{{ else if eq .GetOpType 8 }}
{{ $ .i18n .Tr "action.transfer_repo" .GetContent ( .GetRepoLink | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.transfer_repo" .GetContent ( .GetRepoLink | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 9 }}
{{ else if eq .GetOpType 9 }}
{{ $ tagLink : = .GetTag | PathEscapeSegments | Escape }}
{{ $ .i18n .Tr "action.push_tag" ( .GetRepoLink | Escape ) ( .GetRefLink | Escape ) ( .GetTag | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.push_tag" ( .GetRepoLink | Escape ) $ tagLink ( .ShortRepoPath | Escape ) .GetTag | Str2html }}
{{ else if eq .GetOpType 1 0 }}
{{ else if eq .GetOpType 1 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.comment_issue" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.comment_issue" ( ( printf "%s/issues/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 1 1 }}
{{ else if eq .GetOpType 1 1 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.merge_pull_request" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.merge_pull_request" ( ( printf "%s/pulls/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 1 2 }}
{{ else if eq .GetOpType 1 2 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.close_issue" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.close_issue" ( ( printf "%s/issues/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 1 3 }}
{{ else if eq .GetOpType 1 3 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.reopen_issue" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.reopen_issue" ( ( printf "%s/issues/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 1 4 }}
{{ else if eq .GetOpType 1 4 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.close_pull_request" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.close_pull_request" ( ( printf "%s/pulls/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 1 5 }}
{{ else if eq .GetOpType 1 5 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.reopen_pull_request" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.reopen_pull_request" ( ( printf "%s/pulls/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 1 6 }}
{{ else if eq .GetOpType 1 6 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.delete_tag" ( .GetRepoLink | Escape ) ( .GetTag | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.delete_tag" ( .GetRepoLink | Escape ) ( .GetTag | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
@ -59,29 +57,27 @@
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.delete_branch" ( .GetRepoLink | Escape ) ( .GetBranch | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.delete_branch" ( .GetRepoLink | Escape ) ( .GetBranch | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 1 8 }}
{{ else if eq .GetOpType 1 8 }}
{{ $ branchLink : = .GetBranch | PathEscapeSegments }}
{{ $ .i18n .Tr "action.mirror_sync_push" ( .GetRepoLink | Escape ) ( .GetRefLink | Escape ) ( .GetBranch | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.mirror_sync_push" ( .GetRepoLink | Escape ) $ branchLink ( .GetBranch | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 1 9 }}
{{ else if eq .GetOpType 1 9 }}
{{ $ .i18n .Tr "action.mirror_sync_create" ( .GetRepoLink | Escape ) ( .GetBranch | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.mirror_sync_create" ( .GetRepoLink | Escape ) ( .GetRefLink | Escape ) ( .Get Branch | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 2 0 }}
{{ else if eq .GetOpType 2 0 }}
{{ $ .i18n .Tr "action.mirror_sync_delete" ( .GetRepoLink | Escape ) ( .GetBranch | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.mirror_sync_delete" ( .GetRepoLink | Escape ) ( .GetBranch | Escape ) ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 2 1 }}
{{ else if eq .GetOpType 2 1 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.approve_pull_request" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.approve_pull_request" ( ( printf "%s/pulls/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 2 2 }}
{{ else if eq .GetOpType 2 2 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.reject_pull_request" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.reject_pull_request" ( ( printf "%s/pulls/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 2 3 }}
{{ else if eq .GetOpType 2 3 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ .i18n .Tr "action.comment_pull" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ $ .i18n .Tr "action.comment_pull" ( ( printf "%s/pulls/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) | Str2html }}
{{ else if eq .GetOpType 2 4 }}
{{ else if eq .GetOpType 2 4 }}
{{ $ branchLink : = .GetBranch | PathEscapeSegments | Escape }}
{{ $ linkText : = .Content | RenderEmoji }}
{{ $ linkText : = .Content | RenderEmoji }}
{{ $ .i18n .Tr "action.publish_release" ( .GetRepoLink | Escape ) $ branchLink ( .ShortRepoPath | Escape ) $ linkText | Str2html }}
{{ $ .i18n .Tr "action.publish_release" ( .GetRepoLink | Escape ) ( ( printf "%s/release/tag/%s" .GetRepoLink .GetTag ) | Escape ) ( .ShortRepoPath | Escape ) $ linkText | Str2html }}
{{ else if eq .GetOpType 2 5 }}
{{ else if eq .GetOpType 2 5 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ in dex : = in dex .GetIssueInfos 0 }}
{{ $ reviewer : = in dex .GetIssueInfos 1 }}
{{ $ reviewer : = in dex .GetIssueInfos 1 }}
{{ $ .i18n .Tr "action.review_dismissed" ( .GetRepoLink | Escape ) $ in dex ( .ShortRepoPath | Escape ) $ reviewer | Str2html }}
{{ $ .i18n .Tr "action.review_dismissed" ( ( printf "%s/pulls/%s" .GetRepoLink $ in dex ) | Escape ) $ in dex ( .ShortRepoPath | Escape ) $ reviewer | Str2html }}
{{ end }}
{{ end }}
</p>
</p>
{{ if or ( eq .GetOpType 5 ) ( eq .GetOpType 1 8 ) }}
{{ if or ( eq .GetOpType 5 ) ( eq .GetOpType 1 8 ) }}