actions

package
v0.3.17 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

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

Functions

This section is empty.

Types

type AggregateReleaseParams added in v0.3.4

type AggregateReleaseParams struct {
	RepositoryName string
	RepositoryURL  string
	TagName        string
	Sender         string
}

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 *slog.Logger, 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"
	IssueCommentReleaseFreeze   IssueCommentCommand = IssueCommentCommandPrefix + "freeze"
	IssueCommentReleaseUnfreeze IssueCommentCommand = IssueCommentCommandPrefix + "unfreeze"
	IssueCommentTag             IssueCommentCommand = IssueCommentCommandPrefix + "tag"
)

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 *slog.Logger, 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 IssuesActionParams struct {
	PullRequestNumber int
	RepositoryName    string
	RepositoryURL     string
	Comment           string
	CommentID         int64
	User              string
}

type WebhookActions

type WebhookActions struct {
	// contains filtered or unexported fields
}

func InitActions

func InitActions(logger *slog.Logger, 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)

Jump to

Keyboard shortcuts

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