Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitbucketBranch ¶
type BitbucketBranch struct {
Name string `json:"name"`
}
BitbucketBranch is a kv branch
type BitbucketPullRequest ¶
type BitbucketPullRequest struct { Destination RepositoryAndBranch `json:"destination"` Source RepositoryAndBranch `json:"source"` State string `json:"state"` // enum of MERGED || DECLINED }
BitbucketPullRequest is the struct for Bitbucket
type BitbucketWebhookEvent ¶
type BitbucketWebhookEvent struct { Repository Repository `json:"repository"` PullRequest BitbucketPullRequest `json:"pullrequest"` Actor map[string]interface{} `json:"actor"` }
BitbucketWebhookEvent is what we are expecting to parse from bitbucket
type GithubPullRequest ¶
type GithubPullRequest struct { State string `json:"state"` Head GithubRepoHead `json:"head"` Base GithubRepoBase `json:"base"` Merged bool `json:"merged"` }
GithubPullRequest is the struct for Github
type GithubRepoBase ¶
type GithubRepoBase struct {
Repository Repository `json:"repo"`
}
GithubRepoBase
type GithubRepoHead ¶
type GithubRepoHead struct { Ref string `json:"ref"` Repository Repository `json:"repo"` }
GithubRepoHead
type GithubWebhookEvent ¶
type GithubWebhookEvent struct { Action string `json:"action"` PullRequest GithubPullRequest `json:"pull_request"` Repository Repository `json:"repository"` }
GithubWebhookEvent is what we're expecting to parse from Github
type Repository ¶
Repository is a simple type for Github
type RepositoryAndBranch ¶
type RepositoryAndBranch struct { Repository Repository `json:"repository"` Branch BitbucketBranch `json:"branch"` }
RepositoryAndBranch is a bitbucket data object
Click to show internal directories.
Click to hide internal directories.