From 7d5e430ee92d7984b30a277f97a3c732f086293c Mon Sep 17 00:00:00 2001 From: Samuel S <44732143+Progrsam@users.noreply.github.com> Date: Mon, 8 Jul 2024 17:12:03 +0200 Subject: [PATCH] Autocreate webhook in Gitlab instance with Hookshot bot (#3405) * Add public url for gitlab hookshot to autocreate webhook on gitlab instance * Add `noqa var-naming` comment to variable --------- Co-authored-by: Slavi Pantaleev --- roles/custom/matrix-bridge-hookshot/defaults/main.yml | 1 + roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/custom/matrix-bridge-hookshot/defaults/main.yml b/roles/custom/matrix-bridge-hookshot/defaults/main.yml index 823af6257..519ff75ee 100644 --- a/roles/custom/matrix-bridge-hookshot/defaults/main.yml +++ b/roles/custom/matrix-bridge-hookshot/defaults/main.yml @@ -125,6 +125,7 @@ matrix_hookshot_gitlab_instances: # This will be the "Secret token" you have to enter into all GitLab instances for authentication matrix_hookshot_gitlab_webhook_secret: '' +matrix_hookshot_gitlab_webhook_publicUrl: "{{ matrix_hookshot_urlprefix }}{{ matrix_hookshot_webhook_endpoint }}" # noqa var-naming matrix_hookshot_figma_enabled: false diff --git a/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 b/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 index cf60803a8..346310933 100644 --- a/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 +++ b/roles/custom/matrix-bridge-hookshot/templates/config.yml.j2 @@ -47,6 +47,7 @@ gitlab: instances: {{ matrix_hookshot_gitlab_instances | to_json }} webhook: secret: {{ matrix_hookshot_gitlab_webhook_secret | to_json }} + publicUrl: {{ matrix_hookshot_gitlab_webhook_publicUrl | to_json }} {% endif %} {% if matrix_hookshot_figma_enabled %} figma: