Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type Feathers
- type Messages
- type PullRequestEventDTO
- type ReleaseNote
- type Team
- type Teams
- func (ts Teams) Contains(teamNames ...string) error
- func (ts Teams) GetAddressPool() map[string][]string
- func (ts Teams) GetAllContactTypes() []string
- func (ts Teams) GetAllTeamNames() []string
- func (ts Teams) GetContactTypesByTeamNames(names ...string) []string
- func (ts Teams) GetTeamsByNames(names ...string) Teams
Constants ¶
View Source
const ( Slack = "slack" Webhook = "webhook" )
View Source
const ( OpenState = "open" ClosedState = "closed" )
Pull request states
Variables ¶
View Source
var Valid = []string{Slack, Webhook}
Functions ¶
This section is empty.
Types ¶
type PullRequestEventDTO ¶
type PullRequestEventDTO struct {
PullRequestID int64
PROwner string
RepoOwner 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
type ReleaseNote ¶ added in v1.1.1
type Teams ¶ added in v1.3.1
type Teams []Team
func (Teams) GetAddressPool ¶ added in v1.3.2
func (Teams) GetAllContactTypes ¶ added in v1.3.1
func (Teams) GetAllTeamNames ¶ added in v1.3.1
func (Teams) GetContactTypesByTeamNames ¶ added in v1.3.1
func (Teams) GetTeamsByNames ¶ added in v1.3.1
Click to show internal directories.
Click to hide internal directories.