Skip to content

Commit

Permalink
Fix outdated webhook doc URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
vntw committed Jan 25, 2022
1 parent 35322d7 commit 76ba9c9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions event_webhook_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type BuildEvent struct {
// CommitCommentEvent represents a comment on a commit event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#comment-on-commit
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#comment-on-a-commit
type CommitCommentEvent struct {
ObjectKind string `json:"object_kind"`
User *User `json:"user"`
Expand Down Expand Up @@ -125,7 +125,7 @@ type CommitCommentEvent struct {
// DeploymentEvent represents a deployment event
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#deployment-events
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#deployment-events
type DeploymentEvent struct {
ObjectKind string `json:"object_kind"`
Status string `json:"status"`
Expand Down Expand Up @@ -160,7 +160,7 @@ type DeploymentEvent struct {
// IssueCommentEvent represents a comment on an issue event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#comment-on-issue
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#comment-on-an-issue
type IssueCommentEvent struct {
ObjectKind string `json:"object_kind"`
User *User `json:"user"`
Expand Down Expand Up @@ -230,7 +230,7 @@ type IssueCommentEvent struct {
// IssueEvent represents a issue event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#issues-events
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#issue-events
type IssueEvent struct {
ObjectKind string `json:"object_kind"`
User *EventUser `json:"user"`
Expand Down Expand Up @@ -344,7 +344,7 @@ type JobEvent struct {
// MergeCommentEvent represents a comment on a merge event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#comment-on-merge-request
// https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#comment-on-a-merge-request
type MergeCommentEvent struct {
ObjectKind string `json:"object_kind"`
User *EventUser `json:"user"`
Expand Down Expand Up @@ -447,7 +447,7 @@ type MergeCommentEvent struct {
// MergeEvent represents a merge event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#merge-request-events
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#merge-request-events
type MergeEvent struct {
ObjectKind string `json:"object_kind"`
User *EventUser `json:"user"`
Expand Down Expand Up @@ -623,7 +623,7 @@ func (p *MergeParams) UnmarshalJSON(b []byte) error {
// PipelineEvent represents a pipeline event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#pipeline-events
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#pipeline-events
type PipelineEvent struct {
ObjectKind string `json:"object_kind"`
ObjectAttributes struct {
Expand Down Expand Up @@ -720,7 +720,7 @@ type PipelineEvent struct {
// PushEvent represents a push event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#push-events
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#push-events
type PushEvent struct {
ObjectKind string `json:"object_kind"`
Before string `json:"before"`
Expand Down Expand Up @@ -770,7 +770,7 @@ type PushEvent struct {
// ReleaseEvent represents a release event
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#release-events
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#release-events
type ReleaseEvent struct {
ID int `json:"id"`
CreatedAt string `json:"created_at"` // Should be *time.Time (see Gitlab issue #21468)
Expand Down Expand Up @@ -829,7 +829,7 @@ type ReleaseEvent struct {
// SnippetCommentEvent represents a comment on a snippet event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#comment-on-code-snippet
// https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#comment-on-a-code-snippet
type SnippetCommentEvent struct {
ObjectKind string `json:"object_kind"`
User *EventUser `json:"user"`
Expand Down Expand Up @@ -874,7 +874,7 @@ type SnippetCommentEvent struct {
// TagEvent represents a tag event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#tag-events
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#tag-events
type TagEvent struct {
ObjectKind string `json:"object_kind"`
Before string `json:"before"`
Expand Down Expand Up @@ -925,7 +925,7 @@ type TagEvent struct {
// WikiPageEvent represents a wiki page event.
//
// GitLab API docs:
// https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#wiki-page-events
// https://docs.gitlab.com/ce/user/project/integrations/webhook_events.html#wiki-page-events
type WikiPageEvent struct {
ObjectKind string `json:"object_kind"`
User *EventUser `json:"user"`
Expand Down

0 comments on commit 76ba9c9

Please sign in to comment.