mirror of
https://github.com/thegeeklab/wp-matrix.git
synced 2024-11-21 04:20:38 +00:00
fix: use pipeline link in default template
This commit is contained in:
parent
0e78a450f3
commit
6cf8fcea27
@ -1,3 +1,4 @@
|
||||
userid
|
||||
url
|
||||
roomid
|
||||
wp-matrix
|
||||
|
@ -37,7 +37,7 @@ properties:
|
||||
is exposed to the template and all fields can be referenced. To extend the functionality, [sprig functions](https://masterminds.github.io/sprig/) can also be used.
|
||||
defaultValue: |
|
||||
Status: **{{ .Pipeline.Status }}**<br/>
|
||||
Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Repository.Link }}){{ if .Repository.Branch }} ({{ .Repository.Branch }}){{ end }} by {{ .Commit.Author }}<br/>
|
||||
Message: {{ .Commit.Message }}
|
||||
Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Pipeline.Link }}){{ if .Curr.TargetBranch }} ({{ .Curr.TargetBranch }}){{ end }} by {{ .Curr.Author }}<br/>
|
||||
Message: {{ .Curr.Message }}
|
||||
type: string
|
||||
required: false
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
//nolint:lll
|
||||
const defaultTemplate = `
|
||||
Status: **{{ .Pipeline.Status }}**<br/>
|
||||
Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Repository.Link }}){{ if .Curr.TargetBranch }} ({{ .Curr.TargetBranch }}){{ end }} by {{ .Curr.Author }}<br/>
|
||||
Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Pipeline.Link }}){{ if .Curr.TargetBranch }} ({{ .Curr.TargetBranch }}){{ end }} by {{ .Curr.Author }}<br/>
|
||||
Message: {{ .Curr.Message }}
|
||||
`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user