mirror of
https://github.com/thegeeklab/wp-matrix.git
synced 2024-11-23 07:00:40 +00:00
fix: use pipeline link in default template
This commit is contained in:
parent
0e78a450f3
commit
6cf8fcea27
@ -1,3 +1,4 @@
|
|||||||
userid
|
userid
|
||||||
url
|
url
|
||||||
roomid
|
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.
|
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: |
|
defaultValue: |
|
||||||
Status: **{{ .Pipeline.Status }}**<br/>
|
Status: **{{ .Pipeline.Status }}**<br/>
|
||||||
Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Repository.Link }}){{ if .Repository.Branch }} ({{ .Repository.Branch }}){{ end }} by {{ .Commit.Author }}<br/>
|
Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Pipeline.Link }}){{ if .Curr.TargetBranch }} ({{ .Curr.TargetBranch }}){{ end }} by {{ .Curr.Author }}<br/>
|
||||||
Message: {{ .Commit.Message }}
|
Message: {{ .Curr.Message }}
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
|
@ -14,7 +14,7 @@ import (
|
|||||||
//nolint:lll
|
//nolint:lll
|
||||||
const defaultTemplate = `
|
const defaultTemplate = `
|
||||||
Status: **{{ .Pipeline.Status }}**<br/>
|
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 }}
|
Message: {{ .Curr.Message }}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user