2022-05-28 13:24:23 +00:00
---
properties :
2022-11-24 14:09:28 +00:00
- name : username
2022-05-29 20:22:48 +00:00
description : Authentication username. If set, the `password` parameter is required as well.
2022-05-28 13:24:23 +00:00
type : string
required : false
2022-11-24 14:09:28 +00:00
- name : password
2022-05-29 20:22:48 +00:00
description : Authentication password.
2022-05-28 13:24:23 +00:00
type : string
required : false
2022-11-24 14:09:28 +00:00
- name : user_id
2022-05-29 20:22:48 +00:00
description : Aauthentication User ID. If set, the `access_token` parameter is required as well.
2022-05-28 13:24:23 +00:00
type : string
required : false
2022-11-24 14:09:28 +00:00
- name : access_token
2022-05-29 20:22:48 +00:00
description : Authentication access token.
2022-05-28 13:24:23 +00:00
type : string
required : false
2022-11-24 14:09:28 +00:00
- name : homeserver
2022-05-28 13:24:23 +00:00
description : The Matrix homeserver url to use.
defaultValue : https://matrix.org
type : string
required : false
2022-11-24 14:09:28 +00:00
- name : roomid
2022-05-29 20:22:48 +00:00
description : Room ID to send messages to.
2022-05-28 13:24:23 +00:00
type : string
required : false
2022-11-24 14:09:28 +00:00
- name : template
2023-02-08 15:22:10 +00:00
description : |
2023-08-15 22:15:24 +00:00
Golang template for the message. The [Metadata struct](https://pkg.go.dev/github.com/thegeeklab/wp-plugin-go/plugin#Metadata)
2023-02-08 15:22:10 +00:00
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.
2023-08-15 22:15:24 +00:00
defaultValue : |
2023-12-06 20:53:01 +00:00
Status : **{{ .Pipeline.Status }}**
Build : [ {{ .Repository.Slug }}]({{ .Pipeline.URL }}){{ if .Curr.Branch }} ({{ .Curr.Branch }}){{ end }} by {{ .Curr.Author.Name }}
2023-08-16 08:38:12 +00:00
Message : {{ .Curr.Message }}{{ if .Curr.URL }} ([source]({{ .Curr.URL }})){{ end }}
2022-05-28 13:24:23 +00:00
type : string
required : false
2023-12-06 20:53:01 +00:00
- name : template_unsafe
description : |
By default, raw HTML and potentially dangerous links in the template are not rendered. If you want to use inline HTML, you may need to turn this on.
In such cases, please ensure that the CI configuration files in the Git repository are protected against malicious changes.
defaultValue : false
type : bool
required : false