pulls

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReactionTargetIssueComment  = "issueComment"
	ReactionTargetReviewComment = "reviewComment"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddReaction

type AddReaction struct{}

func (*AddReaction) Cancel

func (c *AddReaction) Cancel(ctx core.ExecutionContext) error

func (*AddReaction) Cleanup

func (c *AddReaction) Cleanup(ctx core.SetupContext) error

func (*AddReaction) Color

func (c *AddReaction) Color() string

func (*AddReaction) Configuration

func (c *AddReaction) Configuration() []configuration.Field

func (*AddReaction) Description

func (c *AddReaction) Description() string

func (*AddReaction) Documentation

func (c *AddReaction) Documentation() string

func (*AddReaction) ExampleOutput

func (c *AddReaction) ExampleOutput() map[string]any

func (*AddReaction) Execute

func (c *AddReaction) Execute(ctx core.ExecutionContext) error

func (*AddReaction) HandleHook

func (c *AddReaction) HandleHook(ctx core.ActionHookContext) error

func (*AddReaction) HandleWebhook

func (*AddReaction) Hooks

func (c *AddReaction) Hooks() []core.Hook

func (*AddReaction) Icon

func (c *AddReaction) Icon() string

func (*AddReaction) Label

func (c *AddReaction) Label() string

func (*AddReaction) Name

func (c *AddReaction) Name() string

func (*AddReaction) OutputChannels

func (c *AddReaction) OutputChannels(configuration any) []core.OutputChannel

func (*AddReaction) ProcessQueueItem

func (c *AddReaction) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*AddReaction) Setup

func (c *AddReaction) Setup(ctx core.SetupContext) error

type AddReactionConfiguration

type AddReactionConfiguration struct {
	Repository string `json:"repository" mapstructure:"repository"`
	Target     string `json:"target" mapstructure:"target"`
	CommentID  string `json:"commentId" mapstructure:"commentId"`
	Content    string `json:"content" mapstructure:"content"`
}

type CreateReview

type CreateReview struct{}

func (*CreateReview) Cancel

func (c *CreateReview) Cancel(ctx core.ExecutionContext) error

func (*CreateReview) Cleanup

func (c *CreateReview) Cleanup(ctx core.SetupContext) error

func (*CreateReview) Color

func (c *CreateReview) Color() string

func (*CreateReview) Configuration

func (c *CreateReview) Configuration() []configuration.Field

func (*CreateReview) Description

func (c *CreateReview) Description() string

func (*CreateReview) Documentation

func (c *CreateReview) Documentation() string

func (*CreateReview) ExampleOutput

func (c *CreateReview) ExampleOutput() map[string]any

func (*CreateReview) Execute

func (c *CreateReview) Execute(ctx core.ExecutionContext) error

func (*CreateReview) HandleHook

func (c *CreateReview) HandleHook(ctx core.ActionHookContext) error

func (*CreateReview) HandleWebhook

func (*CreateReview) Hooks

func (c *CreateReview) Hooks() []core.Hook

func (*CreateReview) Icon

func (c *CreateReview) Icon() string

func (*CreateReview) Label

func (c *CreateReview) Label() string

func (*CreateReview) Name

func (c *CreateReview) Name() string

func (*CreateReview) OutputChannels

func (c *CreateReview) OutputChannels(configuration any) []core.OutputChannel

func (*CreateReview) ProcessQueueItem

func (c *CreateReview) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*CreateReview) Setup

func (c *CreateReview) Setup(ctx core.SetupContext) error

type CreateReviewConfiguration

type CreateReviewConfiguration struct {
	Repository string  `mapstructure:"repository" json:"repository"`
	PullNumber string  `mapstructure:"pullNumber" json:"pullNumber"`
	Event      string  `mapstructure:"event" json:"event"`
	Body       *string `mapstructure:"body,omitempty" json:"body,omitempty"`
}

type OnPRComment

type OnPRComment struct{}

func (*OnPRComment) Cleanup

func (p *OnPRComment) Cleanup(ctx core.TriggerContext) error

func (*OnPRComment) Color

func (p *OnPRComment) Color() string

func (*OnPRComment) Configuration

func (p *OnPRComment) Configuration() []configuration.Field

func (*OnPRComment) Description

func (p *OnPRComment) Description() string

func (*OnPRComment) Documentation

func (p *OnPRComment) Documentation() string

func (*OnPRComment) ExampleData

func (t *OnPRComment) ExampleData() map[string]any

func (*OnPRComment) HandleHook

func (p *OnPRComment) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)

func (*OnPRComment) HandleWebhook

func (*OnPRComment) Hooks

func (p *OnPRComment) Hooks() []core.Hook

func (*OnPRComment) Icon

func (p *OnPRComment) Icon() string

func (*OnPRComment) Label

func (p *OnPRComment) Label() string

func (*OnPRComment) Name

func (p *OnPRComment) Name() string

func (*OnPRComment) Setup

func (p *OnPRComment) Setup(ctx core.TriggerContext) error

type OnPRReviewComment

type OnPRReviewComment struct{}

func (*OnPRReviewComment) Cleanup

func (p *OnPRReviewComment) Cleanup(ctx core.TriggerContext) error

func (*OnPRReviewComment) Color

func (p *OnPRReviewComment) Color() string

func (*OnPRReviewComment) Configuration

func (p *OnPRReviewComment) Configuration() []configuration.Field

func (*OnPRReviewComment) Description

func (p *OnPRReviewComment) Description() string

func (*OnPRReviewComment) Documentation

func (p *OnPRReviewComment) Documentation() string

func (*OnPRReviewComment) ExampleData

func (t *OnPRReviewComment) ExampleData() map[string]any

func (*OnPRReviewComment) HandleHook

func (p *OnPRReviewComment) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)

func (*OnPRReviewComment) HandleWebhook

func (*OnPRReviewComment) Hooks

func (p *OnPRReviewComment) Hooks() []core.Hook

func (*OnPRReviewComment) Icon

func (p *OnPRReviewComment) Icon() string

func (*OnPRReviewComment) Label

func (p *OnPRReviewComment) Label() string

func (*OnPRReviewComment) Name

func (p *OnPRReviewComment) Name() string

func (*OnPRReviewComment) Setup

type OnPullRequest

type OnPullRequest struct{}

func (*OnPullRequest) Cleanup

func (p *OnPullRequest) Cleanup(ctx core.TriggerContext) error

func (*OnPullRequest) Color

func (p *OnPullRequest) Color() string

func (*OnPullRequest) Configuration

func (p *OnPullRequest) Configuration() []configuration.Field

func (*OnPullRequest) Description

func (p *OnPullRequest) Description() string

func (*OnPullRequest) Documentation

func (p *OnPullRequest) Documentation() string

func (*OnPullRequest) ExampleData

func (t *OnPullRequest) ExampleData() map[string]any

func (*OnPullRequest) HandleHook

func (p *OnPullRequest) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)

func (*OnPullRequest) HandleWebhook

func (*OnPullRequest) Hooks

func (p *OnPullRequest) Hooks() []core.Hook

func (*OnPullRequest) Icon

func (p *OnPullRequest) Icon() string

func (*OnPullRequest) Label

func (p *OnPullRequest) Label() string

func (*OnPullRequest) Name

func (p *OnPullRequest) Name() string

func (*OnPullRequest) Setup

func (p *OnPullRequest) Setup(ctx core.TriggerContext) error

type OnPullRequestConfiguration

type OnPullRequestConfiguration struct {
	Repository string   `json:"repository" mapstructure:"repository"`
	Actions    []string `json:"actions" mapstructure:"actions"`
}

Jump to

Keyboard shortcuts

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