diff --git a/_docs/data/data.yaml b/_docs/data/data.yaml index 93b3cb0..0aae158 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.Slug }}]({{ .Pipeline.URL }}){{ if .Curr.Branch }} ({{ .Curr.Branch }}){{ end }} by {{ .Curr.Author }}
+ Build: [{{ .Repository.Slug }}]({{ .Pipeline.URL }}){{ if .Curr.Branch }} ({{ .Curr.Branch }}){{ end }} by {{ .Curr.Author.Name }}
Message: {{ .Curr.Message }}{{ if .Curr.URL }} ([source]({{ .Curr.URL }})){{ end }} type: string required: false diff --git a/cmd/wp-matrix/config.go b/cmd/wp-matrix/config.go index 7c93e79..431ffb7 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.Slug }}]({{ .Pipeline.URL }}){{ if .Curr.Branch }} ({{ .Curr.Branch }}){{ end }} by {{ .Curr.Author }}
+Build: [{{ .Repository.Slug }}]({{ .Pipeline.URL }}){{ if .Curr.Branch }} ({{ .Curr.Branch }}){{ end }} by {{ .Curr.Author.Name }}
Message: {{ .Curr.Message }}{{ if .Curr.URL }} ([source]({{ .Curr.URL }})){{ end }} ` diff --git a/go.mod b/go.mod index be6def7..490b823 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/microcosm-cc/bluemonday v1.0.25 github.com/rs/zerolog v1.30.0 github.com/russross/blackfriday/v2 v2.1.0 - github.com/thegeeklab/wp-plugin-go v0.2.2-0.20230816083104-032314d414ea + github.com/thegeeklab/wp-plugin-go v0.2.2-0.20230816085611-e7d536f33852 github.com/urfave/cli/v2 v2.25.7 maunium.net/go/mautrix v0.15.4 ) diff --git a/go.sum b/go.sum index aa5e74f..074ceaf 100644 --- a/go.sum +++ b/go.sum @@ -63,6 +63,8 @@ github.com/thegeeklab/wp-plugin-go v0.2.2-0.20230816063606-7c3ed98b566a h1:2SXI3 github.com/thegeeklab/wp-plugin-go v0.2.2-0.20230816063606-7c3ed98b566a/go.mod h1:7PWAZiTnZ2fAvjsedopQJ6w873KuSxUWsAml1Yib8a0= github.com/thegeeklab/wp-plugin-go v0.2.2-0.20230816083104-032314d414ea h1:T9AOBWIVFO7+jizbgXA1lwYjfM+IKZ6VgApq0PD922M= github.com/thegeeklab/wp-plugin-go v0.2.2-0.20230816083104-032314d414ea/go.mod h1:7PWAZiTnZ2fAvjsedopQJ6w873KuSxUWsAml1Yib8a0= +github.com/thegeeklab/wp-plugin-go v0.2.2-0.20230816085611-e7d536f33852 h1:UQ28aIo6qmBKLob3Q1vW4kizWk85h1RLX8cZo9zX8eo= +github.com/thegeeklab/wp-plugin-go v0.2.2-0.20230816085611-e7d536f33852/go.mod h1:7PWAZiTnZ2fAvjsedopQJ6w873KuSxUWsAml1Yib8a0= github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM= github.com/tidwall/gjson v1.14.4/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=