diff options
Diffstat (limited to 'models/webhook.go')
-rw-r--r-- | models/webhook.go | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/models/webhook.go b/models/webhook.go index 77662f5275..a764455f5f 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -19,7 +19,6 @@ import ( "code.gitea.io/gitea/modules/sync" "code.gitea.io/gitea/modules/util" api "code.gitea.io/sdk/gitea" - "github.com/Unknwon/com" gouuid "github.com/satori/go.uuid" ) @@ -425,15 +424,18 @@ type HookEventType string // Types of hook events const ( - HookEventCreate HookEventType = "create" - HookEventDelete HookEventType = "delete" - HookEventFork HookEventType = "fork" - HookEventPush HookEventType = "push" - HookEventIssues HookEventType = "issues" - HookEventIssueComment HookEventType = "issue_comment" - HookEventPullRequest HookEventType = "pull_request" - HookEventRepository HookEventType = "repository" - HookEventRelease HookEventType = "release" + HookEventCreate HookEventType = "create" + HookEventDelete HookEventType = "delete" + HookEventFork HookEventType = "fork" + HookEventPush HookEventType = "push" + HookEventIssues HookEventType = "issues" + HookEventIssueComment HookEventType = "issue_comment" + HookEventPullRequest HookEventType = "pull_request" + HookEventRepository HookEventType = "repository" + HookEventRelease HookEventType = "release" + HookEventPullRequestApproved HookEventType = "pull_request_approved" + HookEventPullRequestRejected HookEventType = "pull_request_rejected" + HookEventPullRequestComment HookEventType = "pull_request_comment" ) // HookRequest represents hook task request information. |