Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct { State string `json:"state"` Title string `json:"title"` Description string `json:"description"` URL string `json:"url"` Action string `json:"action"` }
Attributes represent things like state, title, url or action
type MergeRequest ¶
type MergeRequest struct { Kind string `json:"object_kind"` Project Project `json:"project"` Attributes Attributes `json:"object_attributes"` }
MergeRequest is the MR object
func (MergeRequest) ProjectName ¶
func (m MergeRequest) ProjectName() string
ProjectName implements Announcement
func (MergeRequest) ShouldAnnounce ¶
func (m MergeRequest) ShouldAnnounce() bool
ShouldAnnounce implements Announcement
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser implements the core.Parser type for GitLab merge webhooks
func (Parser) MatchHeaders ¶
MatchHeaders indicates that the headers match with the kind of request
Click to show internal directories.
Click to hide internal directories.