.
This commit is contained in:
@@ -6,9 +6,19 @@ import (
|
||||
"net/url"
|
||||
)
|
||||
|
||||
const RequestType_CreateBrachTag = "create"
|
||||
const RequestType_DeleteBranchTag = "delete"
|
||||
const RequestType_Fork = "fork"
|
||||
const RequestType_Issue = "issues"
|
||||
const RequestType_IssueAssign = "issue_assign"
|
||||
const RequestType_IssueComment = "issue_comment"
|
||||
const RequestType_IssueLabel = "issue_label"
|
||||
const RequestType_IssueMilestone = "issue_milestone"
|
||||
const RequestType_Push = "push"
|
||||
const RequestType_Repository = "repository"
|
||||
const RequestType_Release = "release"
|
||||
const RequestType_PR = "pull_request"
|
||||
const RequestType_PRComment = "pull_request_comment"
|
||||
const RequestType_PR_sync = "pull_request_sync"
|
||||
|
||||
type RequestProcessor func(*RequestHandler) error
|
||||
@@ -18,8 +28,7 @@ type ListenDefinitions struct {
|
||||
Handlers map[string]RequestProcessor
|
||||
}
|
||||
|
||||
func StartServer(listenDefs ListenDefinitions) {
|
||||
StartServerWithAddress(listenDefs, "[::1]:8000")
|
||||
func StartServer(listenDefs ListenDefinitions, config []*AutogitConfig) {
|
||||
}
|
||||
|
||||
func StartServerWithAddress(listenDefs ListenDefinitions, addr string) {
|
||||
|
||||
@@ -42,7 +42,7 @@ type PullRequestWebhookEvent struct {
|
||||
|
||||
Pull_Request PullRequest
|
||||
Repository Repository
|
||||
Requested_reviewer User
|
||||
Requested_reviewer *User
|
||||
Sender User
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user