Documentation
¶
Index ¶
- Constants
- Variables
- type AggregateReleaseParams
- type AggregateReleases
- type IssueCommentCommand
- type IssuesAction
- type IssuesActionParams
- type WebhookActions
- func (w *WebhookActions) ProcessIssueCommentEvent(ctx context.Context, payload *ghwebhooks.IssueCommentPayload)
- func (w *WebhookActions) ProcessPullRequestEvent(ctx context.Context, payload *ghwebhooks.PullRequestPayload)
- func (w *WebhookActions) ProcessPushEvent(ctx context.Context, payload *ghwebhooks.PushPayload)
- func (w *WebhookActions) ProcessReleaseEvent(ctx context.Context, payload *ghwebhooks.ReleasePayload)
- func (w *WebhookActions) ProcessRepositoryEvent(ctx context.Context, 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" ActionIssuesHandler string = "issue-handling" )
Variables ¶
View Source
var ( IssueCommentCommands = map[IssueCommentCommand]bool{ IssueCommentBuildFork: true, } AllowedAuthorAssociations = map[string]bool{ "COLLABORATOR": true, "MEMBER": true, "OWNER": true, } )
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]any) (*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 IssueCommentCommand ¶ added in v0.3.11
type IssueCommentCommand string
const ( IssueCommentCommandPrefix = "/" IssueCommentBuildFork IssueCommentCommand = IssueCommentCommandPrefix + "ok-to-build" )
type IssuesAction ¶ added in v0.3.11
type IssuesAction struct {
// contains filtered or unexported fields
}
func NewIssuesAction ¶ added in v0.3.11
func NewIssuesAction(logger *zap.SugaredLogger, client *clients.Github, rawConfig map[string]any) (*IssuesAction, error)
func (*IssuesAction) HandleIssueComment ¶ added in v0.3.11
func (r *IssuesAction) HandleIssueComment(ctx context.Context, p *IssuesActionParams) error
type IssuesActionParams ¶ added in v0.3.11
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) ProcessIssueCommentEvent ¶ added in v0.3.11
func (w *WebhookActions) ProcessIssueCommentEvent(ctx context.Context, payload *ghwebhooks.IssueCommentPayload)
func (*WebhookActions) ProcessPullRequestEvent ¶
func (w *WebhookActions) ProcessPullRequestEvent(ctx context.Context, payload *ghwebhooks.PullRequestPayload)
func (*WebhookActions) ProcessPushEvent ¶
func (w *WebhookActions) ProcessPushEvent(ctx context.Context, payload *ghwebhooks.PushPayload)
func (*WebhookActions) ProcessReleaseEvent ¶
func (w *WebhookActions) ProcessReleaseEvent(ctx context.Context, payload *ghwebhooks.ReleasePayload)
func (*WebhookActions) ProcessRepositoryEvent ¶
func (w *WebhookActions) ProcessRepositoryEvent(ctx context.Context, payload *ghwebhooks.RepositoryPayload)
Click to show internal directories.
Click to hide internal directories.