2023-09-17 07:56:02 +00:00
|
|
|
# Address/interface the webhook listener should bind to (default is 127.0.0.1).
|
2023-09-17 03:50:31 +00:00
|
|
|
bind_address: 127.0.0.1
|
2023-09-17 07:56:02 +00:00
|
|
|
# Port the webhook listener should bind to (default is 3000).
|
2023-09-17 03:50:31 +00:00
|
|
|
bind_port: 3000
|
2023-09-17 07:56:02 +00:00
|
|
|
# Optional prefix to serve the webhook path under (default is empty string).
|
2023-09-17 03:50:31 +00:00
|
|
|
url_prefix: "/bebot"
|
2023-09-17 07:56:02 +00:00
|
|
|
# Matrix user to sign in as.
|
2023-09-17 03:50:31 +00:00
|
|
|
user_id: "@mybebot:example.com"
|
2023-09-17 07:56:02 +00:00
|
|
|
# Password for Matrix user.
|
2023-09-17 03:50:31 +00:00
|
|
|
password: "secret-matrix-account-password"
|
2023-09-17 07:56:02 +00:00
|
|
|
# Default Matrix room to publish events to.
|
2023-09-17 03:50:31 +00:00
|
|
|
default_room: "#my-project-commits:example.com"
|
2023-09-17 07:56:02 +00:00
|
|
|
# Default set of events to publish. If left out, all events will be published.
|
|
|
|
default_publish_events:
|
|
|
|
- name: push
|
|
|
|
# Regexes of branch names. Leave out entirely for "all branches".
|
|
|
|
branches:
|
|
|
|
- '^main$'
|
|
|
|
- '^xfce-.+'
|
|
|
|
- name: tag_push
|
|
|
|
- name: issues
|
|
|
|
# See the Gitlab docs for a full list of actions. If left out, all actions
|
|
|
|
# will be published.
|
|
|
|
actions:
|
|
|
|
- open
|
|
|
|
- close
|
|
|
|
- name: merge_request
|
|
|
|
# See the Gitlab docs for a full list of actions. If left out, all actions
|
|
|
|
# will be published.
|
|
|
|
actions:
|
|
|
|
- open
|
|
|
|
- merge
|
|
|
|
- name: pipeline
|
|
|
|
# See the Gitlab docs for a full list of statuses. If left out, all
|
|
|
|
# actions will be published.
|
|
|
|
statuses:
|
|
|
|
- failed
|
|
|
|
# Key-value configuration for repositories.
|
2023-09-17 03:50:31 +00:00
|
|
|
repo_configs:
|
2023-09-17 07:56:02 +00:00
|
|
|
# Keys are the instance name / namespace / repository name
|
2023-09-17 03:50:31 +00:00
|
|
|
"gitlab.example.com/myorg/my-cool-app":
|
2023-09-17 07:56:02 +00:00
|
|
|
# Each repository should use a unique, randomly-generated token. Enter
|
|
|
|
# this token in the webhook configuration's "Secret token" on Gitlab.
|
2023-09-17 03:50:31 +00:00
|
|
|
token: "abcdefg12345"
|
2023-09-17 07:56:02 +00:00
|
|
|
# You can override the default_room above. Leave out to use the default.
|
|
|
|
room: "#my-cool-app-events:example.com"
|
|
|
|
# You can override default_events above. Leave out this section to
|
|
|
|
# use the defaults.
|
|
|
|
publish_events:
|
|
|
|
- name: push
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- name: pipeline
|
|
|
|
statuses:
|
|
|
|
- failed
|
2023-09-17 03:50:31 +00:00
|
|
|
"gitlab.example.com/myuser/some-other-less-cool-app":
|
|
|
|
token: "kljaslkdjaklsdjalksd"
|
2023-09-17 07:56:02 +00:00
|
|
|
# This repo uses the default events and room.
|