2022-05-28 13:24:23 +00:00
|
|
|
---
|
|
|
|
properties:
|
2024-01-03 22:04:03 +00:00
|
|
|
- name: access_token
|
|
|
|
description: |
|
|
|
|
Authentication access token.
|
2022-05-28 13:24:23 +00:00
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
|
2024-01-03 22:04:03 +00:00
|
|
|
- name: homeserver
|
|
|
|
description: |
|
|
|
|
Matrix home server url.
|
2022-05-28 13:24:23 +00:00
|
|
|
type: string
|
2024-01-03 22:26:14 +00:00
|
|
|
defaultValue: "https://matrix.org"
|
2022-05-28 13:24:23 +00:00
|
|
|
required: false
|
|
|
|
|
2024-05-10 06:42:59 +00:00
|
|
|
- name: insecure_skip_verify
|
|
|
|
description: |
|
|
|
|
Skip SSL verification.
|
|
|
|
type: bool
|
|
|
|
defaultValue: false
|
|
|
|
required: false
|
|
|
|
|
|
|
|
- name: log_level
|
|
|
|
description: |
|
|
|
|
Plugin log level.
|
|
|
|
type: string
|
|
|
|
defaultValue: "info"
|
|
|
|
required: false
|
|
|
|
|
2024-01-03 22:04:03 +00:00
|
|
|
- name: password
|
|
|
|
description: |
|
|
|
|
Authentication password.
|
2022-05-28 13:24:23 +00:00
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
|
2022-11-24 14:09:28 +00:00
|
|
|
- name: roomid
|
2024-01-03 22:04:03 +00:00
|
|
|
description: |
|
|
|
|
Roomid 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: |
|
2024-01-03 22:04:03 +00:00
|
|
|
Golang template for the message.
|
|
|
|
|
|
|
|
The [Metadata struct](https://pkg.go.dev/github.com/thegeeklab/wp-plugin-go/plugin#Metadata) 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.
|
|
|
|
type: string
|
2024-01-03 22:26:14 +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 }}
|
2024-01-03 22:04:03 +00:00
|
|
|
Message: {{ .Curr.Title }}{{ if .Curr.URL }} ([source]({{ .Curr.URL }})){{ end }}
|
2022-05-28 13:24:23 +00:00
|
|
|
required: false
|
2023-12-06 20:53:01 +00:00
|
|
|
|
|
|
|
- name: template_unsafe
|
|
|
|
description: |
|
2024-01-03 22:04:03 +00:00
|
|
|
Render raw HTML and potentially dangerous links in template.
|
|
|
|
|
|
|
|
By default, raw HTML and potentially dangerous links in the template are not rendered. If inline HTML is used,
|
|
|
|
it may be necessary to activate this option. In such cases, please ensure that the CI configuration files
|
|
|
|
in the git repository are protected against malicious changes.
|
2023-12-06 20:53:01 +00:00
|
|
|
type: bool
|
2024-01-03 22:26:14 +00:00
|
|
|
defaultValue: false
|
2024-01-03 22:04:03 +00:00
|
|
|
required: false
|
|
|
|
|
|
|
|
- name: user_id
|
|
|
|
description: |
|
|
|
|
Authentication user ID.
|
|
|
|
|
|
|
|
If set, the `access_token` parameter is required as well.
|
|
|
|
type: string
|
|
|
|
required: false
|
|
|
|
|
|
|
|
- name: username
|
|
|
|
description: |
|
|
|
|
Authentication username.
|
|
|
|
|
|
|
|
If set, the `password` parameter is required as well.
|
|
|
|
type: string
|
2023-12-06 20:53:01 +00:00
|
|
|
required: false
|