52 lines
958 B
Go
52 lines
958 B
Go
// Copyright (C) 2019 Marius Schellenberger
|
|
|
|
package main
|
|
|
|
type PullRequestBody struct {
|
|
Action string `json:"action"`
|
|
Number int64 `json:"number"`
|
|
PullRequest PullRequest `json:"pull_request"`
|
|
}
|
|
|
|
type PullRequest struct {
|
|
Head Head `json:"head"`
|
|
Labels []Label `json:"labels"`
|
|
}
|
|
|
|
type Head struct {
|
|
SHA string `json:"sha"`
|
|
}
|
|
|
|
type Label struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type PushBody struct {
|
|
Ref string `json:"ref"`
|
|
After string `json:"after"`
|
|
}
|
|
|
|
type CommentBody struct {
|
|
Issue Issue `json:"issue"`
|
|
Comment Comment `json:"comment"`
|
|
Repository Repository `json:"repository"`
|
|
}
|
|
|
|
type Issue struct {
|
|
Number int64 `json:"number"`
|
|
Labels []Label `json:"labels"`
|
|
}
|
|
|
|
type Comment struct {
|
|
Body string `json:"body"`
|
|
}
|
|
|
|
type Repository struct {
|
|
Name string `json:"name"`
|
|
Owner Owner `json:"owner"`
|
|
CloneURL string `json:"clone_url"`
|
|
}
|
|
|
|
type Owner struct {
|
|
Login string `json:"login"`
|
|
}
|