Documentation
¶
Overview ¶
Package gitlab provides a webhook.Provider implementation for GitLab webhooks. It handles event type detection via the X-Gitlab-Event header and secret token verification via the X-Gitlab-Token header (plain string comparison).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MergeRequestAttrs ¶
type MergeRequestAttrs struct {
Title string `json:"title"`
Description string `json:"description"`
State string `json:"state"`
MergeCommit string `json:"merge_commit_sha"`
URL string `json:"url"`
Action string `json:"action"`
}
MergeRequestAttrs contains merge request details from a GitLab webhook event.
type MergeRequestEvent ¶
type MergeRequestEvent struct {
ObjectAttrs MergeRequestAttrs `json:"object_attributes"`
Project Project `json:"project"`
}
MergeRequestEvent represents a GitLab merge_request webhook payload.
type Project ¶
type Project struct {
WebURL string `json:"web_url"`
HTTPURL string `json:"http_url"`
Name string `json:"name"`
PathNS string `json:"path_with_namespace"`
}
Project contains project details from a GitLab webhook event.
Click to show internal directories.
Click to hide internal directories.