diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2018-12-27 19:04:30 +0100 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2018-12-27 13:04:30 -0500 |
commit | 945804f800ac4e81c46bde848616e9d9392a9571 (patch) | |
tree | f137ad55d93b3f0a426e8f1e0340d786daee05c3 /models/webhook.go | |
parent | 8bb0a6f425f994addc2822a21e0dca60e8c5251a (diff) | |
download | gitea-945804f800ac4e81c46bde848616e9d9392a9571.tar.gz gitea-945804f800ac4e81c46bde848616e9d9392a9571.zip |
Webhook for Pull Request approval/rejection (#5027)
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. |