This commit is contained in:
2024-08-26 17:07:52 +02:00
parent 0473ef7c37
commit 3df22a72bb
5 changed files with 38 additions and 19 deletions

View File

@@ -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) {

View File

@@ -42,7 +42,7 @@ type PullRequestWebhookEvent struct {
Pull_Request PullRequest
Repository Repository
Requested_reviewer User
Requested_reviewer *User
Sender User
}