Documentation
¶
Index ¶
Constants ¶
View Source
const ( Slack = "slack" Webhook = "webhook" )
Variables ¶
View Source
var Valid = []string{Slack, Webhook}
Functions ¶
This section is empty.
Types ¶
type PullRequestEventDTO ¶
type PullRequestEventDTO struct {
Owner string
RepoName string
Body string
PRNumber int
SHA string
Branch string
DefaultBranch string
}
PullRequestEventDTO is a data transfer object for the PullRequestEvent. It reduces the amount of data that is held by the service.
func MarshalPullRequestEvent ¶
func MarshalPullRequestEvent(event *github.PullRequestEvent) *PullRequestEventDTO
MarshalPullRequestEvent marshals a github.PullRequestEvent into a PullRequestEventDTO
Click to show internal directories.
Click to hide internal directories.