-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlisteners.go
83 lines (62 loc) · 2.13 KB
/
listeners.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package gitlabwebhook
import (
"context"
gitlab "gitlab.com/gitlab-org/api/client-go"
)
type BuildListener interface {
OnBuild(ctx context.Context, event *gitlab.BuildEvent) error
}
type CommitCommentListener interface {
OnCommitComment(ctx context.Context, event *gitlab.CommitCommentEvent) error
}
type DeploymentListener interface {
OnDeployment(ctx context.Context, event *gitlab.DeploymentEvent) error
}
type FeatureFlagListener interface {
OnFeatureFlag(ctx context.Context, event *gitlab.FeatureFlagEvent) error
}
type GroupResourceAccessTokenListener interface {
OnGroupResourceAccessToken(ctx context.Context, event *gitlab.GroupResourceAccessTokenEvent) error
}
type IssueCommentListener interface {
OnIssueComment(ctx context.Context, event *gitlab.IssueCommentEvent) error
}
type IssueListener interface {
OnIssue(ctx context.Context, event *gitlab.IssueEvent) error
}
type JobListener interface {
OnJob(ctx context.Context, event *gitlab.JobEvent) error
}
type MemberListener interface {
OnMember(ctx context.Context, event *gitlab.MemberEvent) error
}
type MergeCommentListener interface {
OnMergeComment(ctx context.Context, event *gitlab.MergeCommentEvent) error
}
type MergeListener interface {
OnMerge(ctx context.Context, event *gitlab.MergeEvent) error
}
type PipelineListener interface {
OnPipeline(ctx context.Context, event *gitlab.PipelineEvent) error
}
type ProjectResourceAccessTokenListener interface {
OnProjectResourceAccessToken(ctx context.Context, event *gitlab.ProjectResourceAccessTokenEvent) error
}
type PushListener interface {
OnPush(ctx context.Context, event *gitlab.PushEvent) error
}
type ReleaseListener interface {
OnRelease(ctx context.Context, event *gitlab.ReleaseEvent) error
}
type SnippetCommentListener interface {
OnSnippetComment(ctx context.Context, event *gitlab.SnippetCommentEvent) error
}
type SubGroupListener interface {
OnSubGroup(ctx context.Context, event *gitlab.SubGroupEvent) error
}
type TagListener interface {
OnTag(ctx context.Context, event *gitlab.TagEvent) error
}
type WikiPageListener interface {
OnWikiPage(ctx context.Context, event *gitlab.WikiPageEvent) error
}