Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type Feathers
- type GetReleasesResponse
- type Messages
- type PullRequestEventDTO
- type PullRequestSummary
- type Release
- 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 ( OpenState = "open" ClosedState = "closed" )
Pull request states
View Source
const ( Slack = "slack" Webhook = "webhook" None = "none" )
Variables ¶
View Source
var Valid = []string{Slack, Webhook, None}
Functions ¶
This section is empty.
Types ¶
type GetReleasesResponse ¶ added in v1.7.0
type GetReleasesResponse struct {
Releases []Release `json:"releases"`
}
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 & IssueCommentEvent. It reduces the amount of data that is held by the service.
func MarshalIssueCommentCreatedEvent ¶ added in v1.10.0
func MarshalIssueCommentCreatedEvent(event *github.IssueCommentEvent) *PullRequestEventDTO
MarshalIssueCommentCreatedEvent marshals a github.IssueCommentEvent into a PullRequestEventDTO
func MarshalPullRequestEvent ¶
func MarshalPullRequestEvent(event *github.PullRequestEvent) *PullRequestEventDTO
MarshalPullRequestEvent marshals a github.PullRequestEvent into a PullRequestEventDTO
func (*PullRequestEventDTO) Summary ¶ added in v1.7.0
func (p *PullRequestEventDTO) Summary() PullRequestSummary
type PullRequestSummary ¶ added in v1.7.0
PullRequestSummary is a summary of the PR details to be stored alongside release notes
type Release ¶ added in v1.7.0
type Release struct { CreatedAt time.Time `json:"createdAt" bson:"createdAt"` ReleaseNotes []ReleaseNote `json:"releaseNotes" bson:"releaseNotes"` Environment string `json:"environment" bson:"environment"` PullRequest PullRequestSummary `json:"pullRequest" bson:"pullRequest"` }
type ReleaseNote ¶ added in v1.1.1
func (*ReleaseNote) AppendContent ¶ added in v1.13.0
func (r *ReleaseNote) AppendContent(content string)
func (*ReleaseNote) AreTeamsEqual ¶ added in v1.13.0
func (r *ReleaseNote) AreTeamsEqual(other ReleaseNote) bool
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.