mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-01-15 23:55:57 +00:00
formatters: gitlab webhook: token is optional
This commit is contained in:
parent
d339485430
commit
dcda34e220
@ -94,7 +94,8 @@ def gitlab_webhook(data, headers):
|
||||
body.append(f"by {user_name}.")
|
||||
|
||||
data["body"] = " ".join(body)
|
||||
data["key"] = headers["X-Gitlab-Token"]
|
||||
if "X-Gitlab-Token" in headers:
|
||||
data["key"] = headers["X-Gitlab-Token"]
|
||||
return data
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user