42 lines
1.1 KiB
Go
42 lines
1.1 KiB
Go
package gitlab
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// WebhookInfo Provides information about group or project hooks.
|
|
type WebhookInfo struct {
|
|
ID int
|
|
URL string
|
|
ConfidentialNoteEvents bool
|
|
PushEvents bool
|
|
IssuesEvents bool
|
|
ConfidentialIssuesEvents bool
|
|
MergeRequestsEvents bool
|
|
TagPushEvents bool
|
|
NoteEvents bool
|
|
JobEvents bool
|
|
PipelineEvents bool
|
|
WikiPageEvents bool
|
|
EnableSSLVerification bool
|
|
CreatedAt *time.Time
|
|
Scope Scope
|
|
}
|
|
|
|
// AddWebhookOptions is a paramater object with options for creating a project or group hook.
|
|
type AddWebhookOptions struct {
|
|
URL string
|
|
ConfidentialNoteEvents bool
|
|
PushEvents bool
|
|
IssuesEvents bool
|
|
ConfidentialIssuesEvents bool
|
|
MergeRequestsEvents bool
|
|
TagPushEvents bool
|
|
NoteEvents bool
|
|
JobEvents bool
|
|
PipelineEvents bool
|
|
WikiPageEvents bool
|
|
EnableSSLVerification bool
|
|
Token string
|
|
}
|