diff --git a/.dictionary b/.dictionary index 62af411..e88895b 100644 --- a/.dictionary +++ b/.dictionary @@ -1,3 +1,4 @@ userid url roomid +wp-matrix diff --git a/_docs/data/data.yaml b/_docs/data/data.yaml index ee9b70c..42c5bc1 100644 --- a/_docs/data/data.yaml +++ b/_docs/data/data.yaml @@ -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 }}**
- Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Repository.Link }}){{ if .Repository.Branch }} ({{ .Repository.Branch }}){{ end }} by {{ .Commit.Author }}
- Message: {{ .Commit.Message }} + Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Pipeline.Link }}){{ if .Curr.TargetBranch }} ({{ .Curr.TargetBranch }}){{ end }} by {{ .Curr.Author }}
+ Message: {{ .Curr.Message }} type: string required: false diff --git a/cmd/wp-matrix/config.go b/cmd/wp-matrix/config.go index 9fa0155..d9ecadd 100644 --- a/cmd/wp-matrix/config.go +++ b/cmd/wp-matrix/config.go @@ -14,7 +14,7 @@ import ( //nolint:lll const defaultTemplate = ` Status: **{{ .Pipeline.Status }}**
-Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Repository.Link }}){{ if .Curr.TargetBranch }} ({{ .Curr.TargetBranch }}){{ end }} by {{ .Curr.Author }}
+Build: [{{ .Repository.Owner }}/{{ .Repository.Name }}]({{ .Pipeline.Link }}){{ if .Curr.TargetBranch }} ({{ .Curr.TargetBranch }}){{ end }} by {{ .Curr.Author }}
Message: {{ .Curr.Message }} `