models

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL