Documentation
¶
Index ¶
- Constants
- type AggregateReleaseParams
- type AggregateReleases
- type WebhookActions
- func (w *WebhookActions) ProcessPullRequestEvent(payload *ghwebhooks.PullRequestPayload)
- func (w *WebhookActions) ProcessPushEvent(payload *ghwebhooks.PushPayload)
- func (w *WebhookActions) ProcessReleaseEvent(payload *ghwebhooks.ReleasePayload)
- func (w *WebhookActions) ProcessRepositoryEvent(payload *ghwebhooks.RepositoryPayload)
Constants ¶
View Source
const ( ActionAggregateReleases string = "aggregate-releases" ActionYAMLTranslateReleases string = "yaml-translate-releases" ActionDocsPreviewComment string = "docs-preview-comment" ActionCreateRepositoryMaintainers string = "create-repository-maintainers" ActionDistributeReleases string = "distribute-releases" ActionReleaseDraft string = "release-draft" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateReleaseParams ¶ added in v0.3.4
type AggregateReleases ¶ added in v0.3.4
type AggregateReleases struct {
// contains filtered or unexported fields
}
func NewAggregateReleases ¶ added in v0.3.4
func NewAggregateReleases(logger *zap.SugaredLogger, client *clients.Github, rawConfig map[string]interface{}) (*AggregateReleases, error)
func (*AggregateReleases) AggregateRelease ¶ added in v0.3.4
func (r *AggregateReleases) AggregateRelease(ctx context.Context, p *AggregateReleaseParams) error
AggregateRelease applies the given actions after push and release trigger of a given list of source repositories to a target repository
type WebhookActions ¶
type WebhookActions struct {
// contains filtered or unexported fields
}
func InitActions ¶
func InitActions(logger *zap.SugaredLogger, cs clients.ClientMap, config config.WebhookActions) (*WebhookActions, error)
func (*WebhookActions) ProcessPullRequestEvent ¶
func (w *WebhookActions) ProcessPullRequestEvent(payload *ghwebhooks.PullRequestPayload)
func (*WebhookActions) ProcessPushEvent ¶
func (w *WebhookActions) ProcessPushEvent(payload *ghwebhooks.PushPayload)
func (*WebhookActions) ProcessReleaseEvent ¶
func (w *WebhookActions) ProcessReleaseEvent(payload *ghwebhooks.ReleasePayload)
func (*WebhookActions) ProcessRepositoryEvent ¶
func (w *WebhookActions) ProcessRepositoryEvent(payload *ghwebhooks.RepositoryPayload)
Click to show internal directories.
Click to hide internal directories.