You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/argoworkflow/template/comment.go
+3-2
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,13 @@ package template
3
3
// CommentTemplate is the default comment template
4
4
constCommentTemplate=`
5
5
<!-- Generated by https://github.com/LinuxSuRen/gogit -->
6
-
[{{.Spec.WorkflowTemplateRef.Name}}]({{get .Annotations "workflow.templatelink"}}) is {{.Status.Phase}}. It started from {{date "01-02 15:04" .Status.StartedAt.Time}}, and took {{duration .Status.FinishedAt .Status.StartedAt}}. Please check log output from [here]({{get .Annotations "workflow.link"}}).
6
+
{{ $link := (get .Annotations "workflow.link") }}
7
+
[{{.Spec.WorkflowTemplateRef.Name}}]({{get .Annotations "workflow.templatelink"}}) is {{.Status.Phase}}. It started from {{date "01-02 15:04" .Status.StartedAt.Time}}, and took {{duration .Status.FinishedAt .Status.StartedAt}}. Please check log output from [here]({{$link}}).
<!-- Generated by https://github.com/LinuxSuRen/gogit -->
52
+
52
53
[Sample](https://github.com/linxusuren/gogit.git) is Failed. It started from 12-12 15:22, and took 5s. Please check log output from [here](https://github.com/linxusuren/gogit).
0 commit comments