0
0
mirror of https://github.com/thegeeklab/wp-matrix.git synced 2024-09-18 18:52:47 +02:00

fix: use commit title instead of full message (#16)

This commit is contained in:
Robert Kaussow 2023-09-03 22:09:11 +02:00 committed by GitHub
parent 174130d3c4
commit 1ccdb63f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import (
const defaultTemplate = `
Status: **{{ .Pipeline.Status }}**<br/>
Build: [{{ .Repository.Slug }}]({{ .Pipeline.URL }}){{ if .Curr.Branch }} ({{ .Curr.Branch }}){{ end }} by {{ .Curr.Author.Name }}<br/>
Message: {{ .Curr.Message }}{{ if .Curr.URL }} ([source]({{ .Curr.URL }})){{ end }}
Message: {{ .Curr.Title }}{{ if .Curr.URL }} ([source]({{ .Curr.URL }})){{ end }}
`
// settingsFlags has the cli.Flags for the plugin.Settings.

2
go.mod
View File

@ -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 v1.0.0
github.com/thegeeklab/wp-plugin-go v1.0.1
github.com/urfave/cli/v2 v2.25.7
maunium.net/go/mautrix v0.16.0
)

2
go.sum
View File

@ -60,6 +60,8 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/thegeeklab/wp-plugin-go v1.0.0 h1:PSrP7gp1TqApegv34u3YSK2PHF+D7Vfodl95bRba33M=
github.com/thegeeklab/wp-plugin-go v1.0.0/go.mod h1:y0k5zaKWjdGbgkaOHhEPFEL6p+yOLOjqHy0LWOrv0MM=
github.com/thegeeklab/wp-plugin-go v1.0.1 h1:n0z+UVghSfTyOpwo75aAdV0EPhLbIr2DqIEqiXHKOAU=
github.com/thegeeklab/wp-plugin-go v1.0.1/go.mod h1:y0k5zaKWjdGbgkaOHhEPFEL6p+yOLOjqHy0LWOrv0MM=
github.com/tidwall/gjson v1.14.2/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/gjson v1.16.0 h1:SyXa+dsSPpUlcwEDuKuEBJEz5vzTvOea+9rjyYodQFg=
github.com/tidwall/gjson v1.16.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=