read secret from k8s
This commit is contained in:
parent
da809273e0
commit
b22355d2a5
12 changed files with 583 additions and 85 deletions
52
types.go
Normal file
52
types.go
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
// 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"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue