github

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubAppPEM           = "pem"
	GitHubAppClientSecret  = "clientSecret"
	GitHubAppWebhookSecret = "webhookSecret"
)
View Source
const (
	WorkflowPayloadType          = "github.workflow.finished"
	WorkflowPassedOutputChannel  = "passed"
	WorkflowFailedOutputChannel  = "failed"
	WorkflowRunStatusCompleted   = "completed"
	WorkflowRunConclusionSuccess = "success"
	WorkflowPollInterval         = 5 * time.Minute
)

Variables

This section is empty.

Functions

func NewClient added in v0.5.0

func NewClient(ctx core.IntegrationContext, ghAppID int64, installationID string) (*github.Client, error)

Types

type Configuration added in v0.5.0

type Configuration struct {
	Organization string `json:"organization"`
}

type CreateIssue added in v0.5.0

type CreateIssue struct{}

func (*CreateIssue) Actions added in v0.5.0

func (c *CreateIssue) Actions() []core.Action

func (*CreateIssue) Cancel added in v0.5.0

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

func (*CreateIssue) Cleanup added in v0.7.0

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

func (*CreateIssue) Color added in v0.5.0

func (c *CreateIssue) Color() string

func (*CreateIssue) Configuration added in v0.5.0

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

func (*CreateIssue) Description added in v0.5.0

func (c *CreateIssue) Description() string

func (*CreateIssue) Documentation added in v0.5.0

func (c *CreateIssue) Documentation() string

func (*CreateIssue) ExampleOutput added in v0.5.0

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

func (*CreateIssue) Execute added in v0.5.0

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

func (*CreateIssue) HandleAction added in v0.5.0

func (c *CreateIssue) HandleAction(ctx core.ActionContext) error

func (*CreateIssue) HandleWebhook added in v0.5.0

func (c *CreateIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*CreateIssue) Icon added in v0.5.0

func (c *CreateIssue) Icon() string

func (*CreateIssue) Label added in v0.5.0

func (c *CreateIssue) Label() string

func (*CreateIssue) Name added in v0.5.0

func (c *CreateIssue) Name() string

func (*CreateIssue) OutputChannels added in v0.5.0

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

func (*CreateIssue) ProcessQueueItem added in v0.5.0

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

func (*CreateIssue) Setup added in v0.5.0

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

type CreateIssueConfiguration added in v0.5.0

type CreateIssueConfiguration struct {
	Repository string   `mapstructure:"repository"`
	Title      string   `mapstructure:"title"`
	Body       string   `mapstructure:"body"`
	Assignees  []string `mapstructure:"assignees"`
	Labels     []string `mapstructure:"labels"`
}

type CreateRelease added in v0.5.0

type CreateRelease struct{}

func (*CreateRelease) Actions added in v0.5.0

func (c *CreateRelease) Actions() []core.Action

func (*CreateRelease) Cancel added in v0.5.0

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

func (*CreateRelease) Cleanup added in v0.7.0

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

func (*CreateRelease) Color added in v0.5.0

func (c *CreateRelease) Color() string

func (*CreateRelease) Configuration added in v0.5.0

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

func (*CreateRelease) Description added in v0.5.0

func (c *CreateRelease) Description() string

func (*CreateRelease) Documentation added in v0.5.0

func (c *CreateRelease) Documentation() string

func (*CreateRelease) ExampleOutput added in v0.5.0

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

func (*CreateRelease) Execute added in v0.5.0

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

func (*CreateRelease) HandleAction added in v0.5.0

func (c *CreateRelease) HandleAction(ctx core.ActionContext) error

func (*CreateRelease) HandleWebhook added in v0.5.0

func (c *CreateRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*CreateRelease) Icon added in v0.5.0

func (c *CreateRelease) Icon() string

func (*CreateRelease) Label added in v0.5.0

func (c *CreateRelease) Label() string

func (*CreateRelease) Name added in v0.5.0

func (c *CreateRelease) Name() string

func (*CreateRelease) OutputChannels added in v0.5.0

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

func (*CreateRelease) ProcessQueueItem added in v0.5.0

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

func (*CreateRelease) Setup added in v0.5.0

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

type CreateReleaseConfiguration added in v0.5.0

type CreateReleaseConfiguration struct {
	Repository           string `mapstructure:"repository"`
	VersionStrategy      string `mapstructure:"versionStrategy"`
	TagName              string `mapstructure:"tagName"`
	Name                 string `mapstructure:"name"`
	Draft                bool   `mapstructure:"draft"`
	Prerelease           bool   `mapstructure:"prerelease"`
	GenerateReleaseNotes bool   `mapstructure:"generateReleaseNotes"`
	Body                 string `mapstructure:"body"`
}

type DeleteRelease added in v0.5.0

type DeleteRelease struct{}

func (*DeleteRelease) Actions added in v0.5.0

func (c *DeleteRelease) Actions() []core.Action

func (*DeleteRelease) Cancel added in v0.5.0

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

func (*DeleteRelease) Cleanup added in v0.7.0

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

func (*DeleteRelease) Color added in v0.5.0

func (c *DeleteRelease) Color() string

func (*DeleteRelease) Configuration added in v0.5.0

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

func (*DeleteRelease) Description added in v0.5.0

func (c *DeleteRelease) Description() string

func (*DeleteRelease) Documentation added in v0.5.0

func (c *DeleteRelease) Documentation() string

func (*DeleteRelease) ExampleOutput added in v0.5.0

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

func (*DeleteRelease) Execute added in v0.5.0

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

func (*DeleteRelease) HandleAction added in v0.5.0

func (c *DeleteRelease) HandleAction(ctx core.ActionContext) error

func (*DeleteRelease) HandleWebhook added in v0.5.0

func (c *DeleteRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*DeleteRelease) Icon added in v0.5.0

func (c *DeleteRelease) Icon() string

func (*DeleteRelease) Label added in v0.5.0

func (c *DeleteRelease) Label() string

func (*DeleteRelease) Name added in v0.5.0

func (c *DeleteRelease) Name() string

func (*DeleteRelease) OutputChannels added in v0.5.0

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

func (*DeleteRelease) ProcessQueueItem added in v0.5.0

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

func (*DeleteRelease) Setup added in v0.5.0

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

type DeleteReleaseConfiguration added in v0.5.0

type DeleteReleaseConfiguration struct {
	Repository      string `mapstructure:"repository"`
	ReleaseStrategy string `mapstructure:"releaseStrategy"`
	TagName         string `mapstructure:"tagName"`
	DeleteTag       bool   `mapstructure:"deleteTag"`
}

type GetIssue added in v0.5.0

type GetIssue struct{}

func (*GetIssue) Actions added in v0.5.0

func (c *GetIssue) Actions() []core.Action

func (*GetIssue) Cancel added in v0.5.0

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

func (*GetIssue) Cleanup added in v0.7.0

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

func (*GetIssue) Color added in v0.5.0

func (c *GetIssue) Color() string

func (*GetIssue) Configuration added in v0.5.0

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

func (*GetIssue) Description added in v0.5.0

func (c *GetIssue) Description() string

func (*GetIssue) Documentation added in v0.5.0

func (c *GetIssue) Documentation() string

func (*GetIssue) ExampleOutput added in v0.5.0

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

func (*GetIssue) Execute added in v0.5.0

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

func (*GetIssue) HandleAction added in v0.5.0

func (c *GetIssue) HandleAction(ctx core.ActionContext) error

func (*GetIssue) HandleWebhook added in v0.5.0

func (c *GetIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*GetIssue) Icon added in v0.5.0

func (c *GetIssue) Icon() string

func (*GetIssue) Label added in v0.5.0

func (c *GetIssue) Label() string

func (*GetIssue) Name added in v0.5.0

func (c *GetIssue) Name() string

func (*GetIssue) OutputChannels added in v0.5.0

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

func (*GetIssue) ProcessQueueItem added in v0.5.0

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

func (*GetIssue) Setup added in v0.5.0

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

type GetIssueConfiguration added in v0.5.0

type GetIssueConfiguration struct {
	Repository  string `json:"repository" mapstructure:"repository"`
	IssueNumber string `json:"issueNumber" mapstructure:"issueNumber"`
}

type GetRelease added in v0.7.0

type GetRelease struct{}

func (*GetRelease) Actions added in v0.7.0

func (c *GetRelease) Actions() []core.Action

func (*GetRelease) Cancel added in v0.7.0

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

func (*GetRelease) Cleanup added in v0.7.0

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

func (*GetRelease) Color added in v0.7.0

func (c *GetRelease) Color() string

func (*GetRelease) Configuration added in v0.7.0

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

func (*GetRelease) Description added in v0.7.0

func (c *GetRelease) Description() string

func (*GetRelease) Documentation added in v0.7.0

func (c *GetRelease) Documentation() string

func (*GetRelease) ExampleOutput added in v0.7.0

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

func (*GetRelease) Execute added in v0.7.0

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

func (*GetRelease) HandleAction added in v0.7.0

func (c *GetRelease) HandleAction(ctx core.ActionContext) error

func (*GetRelease) HandleWebhook added in v0.7.0

func (c *GetRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*GetRelease) Icon added in v0.7.0

func (c *GetRelease) Icon() string

func (*GetRelease) Label added in v0.7.0

func (c *GetRelease) Label() string

func (*GetRelease) Name added in v0.7.0

func (c *GetRelease) Name() string

func (*GetRelease) OutputChannels added in v0.7.0

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

func (*GetRelease) ProcessQueueItem added in v0.7.0

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

func (*GetRelease) Setup added in v0.7.0

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

type GetReleaseConfiguration added in v0.7.0

type GetReleaseConfiguration struct {
	Repository      string  `mapstructure:"repository"`
	ReleaseStrategy string  `mapstructure:"releaseStrategy"`
	TagName         *string `mapstructure:"tagName,omitempty"`
	ReleaseID       *string `mapstructure:"releaseId,omitempty"`
}

type GitHub added in v0.5.0

type GitHub struct {
}

func (*GitHub) Actions added in v0.6.0

func (g *GitHub) Actions() []core.Action

func (*GitHub) Cleanup added in v0.6.0

func (g *GitHub) Cleanup(ctx core.IntegrationCleanupContext) error

func (*GitHub) Components added in v0.5.0

func (g *GitHub) Components() []core.Component

func (*GitHub) Configuration added in v0.5.0

func (g *GitHub) Configuration() []configuration.Field

func (*GitHub) Description added in v0.5.0

func (g *GitHub) Description() string

func (*GitHub) HandleAction added in v0.6.0

func (g *GitHub) HandleAction(ctx core.IntegrationActionContext) error

func (*GitHub) HandleRequest added in v0.5.0

func (g *GitHub) HandleRequest(ctx core.HTTPRequestContext)

func (*GitHub) Icon added in v0.5.0

func (g *GitHub) Icon() string

func (*GitHub) Instructions added in v0.5.0

func (g *GitHub) Instructions() string

func (*GitHub) Label added in v0.5.0

func (g *GitHub) Label() string

func (*GitHub) ListResources added in v0.5.0

func (g *GitHub) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)

func (*GitHub) Name added in v0.5.0

func (g *GitHub) Name() string

func (*GitHub) Sync added in v0.5.0

func (g *GitHub) Sync(ctx core.SyncContext) error

func (*GitHub) Triggers added in v0.5.0

func (g *GitHub) Triggers() []core.Trigger

type GitHubAppData added in v0.5.0

type GitHubAppData struct {
	ID            int64  `mapstructure:"id" json:"id"`
	Slug          string `mapstructure:"slug" json:"slug"`
	ClientID      string `mapstructure:"client_id" json:"client_id"`
	ClientSecret  string `mapstructure:"client_secret" json:"client_secret"`
	WebhookSecret string `mapstructure:"webhook_secret" json:"webhook_secret"`
	PEM           string `mapstructure:"pem" json:"pem"`
}

* This is the response GitHub sends back after the GitHub app is created. * NOTE: this contains sensitive data, so we should not save this as part * of the installation metadata.

type GitHubAppMetadata added in v0.5.0

type GitHubAppMetadata struct {
	ID       int64  `mapstructure:"id" json:"id"`
	Slug     string `mapstructure:"slug" json:"slug"`
	ClientID string `mapstructure:"clientId" json:"clientId"`
}

type GitHubWebhookHandler added in v0.7.0

type GitHubWebhookHandler struct{}

func (*GitHubWebhookHandler) Cleanup added in v0.7.0

func (*GitHubWebhookHandler) CompareConfig added in v0.7.0

func (h *GitHubWebhookHandler) CompareConfig(a, b any) (bool, error)

func (*GitHubWebhookHandler) Setup added in v0.7.0

type Input added in v0.5.0

type Input struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Metadata added in v0.5.0

type Metadata struct {
	InstallationID string            `mapstructure:"installationId" json:"installationId"`
	State          string            `mapstructure:"state" json:"state"`
	Owner          string            `mapstructure:"owner" json:"owner"`
	Repositories   []Repository      `mapstructure:"repositories" json:"repositories"`
	GitHubApp      GitHubAppMetadata `mapstructure:"githubApp" json:"githubApp"`
}

type NodeMetadata added in v0.5.0

type NodeMetadata struct {
	Repository *Repository `json:"repository"`
}

type OnBranchCreated added in v0.5.0

type OnBranchCreated struct{}

func (*OnBranchCreated) Actions added in v0.5.0

func (t *OnBranchCreated) Actions() []core.Action

func (*OnBranchCreated) Cleanup added in v0.7.0

func (t *OnBranchCreated) Cleanup(ctx core.TriggerContext) error

func (*OnBranchCreated) Color added in v0.5.0

func (t *OnBranchCreated) Color() string

func (*OnBranchCreated) Configuration added in v0.5.0

func (t *OnBranchCreated) Configuration() []configuration.Field

func (*OnBranchCreated) Description added in v0.5.0

func (t *OnBranchCreated) Description() string

func (*OnBranchCreated) Documentation added in v0.5.0

func (t *OnBranchCreated) Documentation() string

func (*OnBranchCreated) ExampleData added in v0.5.0

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

func (*OnBranchCreated) HandleAction added in v0.5.0

func (t *OnBranchCreated) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*OnBranchCreated) HandleWebhook added in v0.5.0

func (t *OnBranchCreated) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnBranchCreated) Icon added in v0.5.0

func (t *OnBranchCreated) Icon() string

func (*OnBranchCreated) Label added in v0.5.0

func (t *OnBranchCreated) Label() string

func (*OnBranchCreated) Name added in v0.5.0

func (t *OnBranchCreated) Name() string

func (*OnBranchCreated) Setup added in v0.5.0

func (t *OnBranchCreated) Setup(ctx core.TriggerContext) error

type OnBranchCreatedConfiguration added in v0.5.0

type OnBranchCreatedConfiguration struct {
	Repository string                    `json:"repository"`
	Branches   []configuration.Predicate `json:"branches"`
}

type OnIssue added in v0.5.0

type OnIssue struct{}

func (*OnIssue) Actions added in v0.5.0

func (i *OnIssue) Actions() []core.Action

func (*OnIssue) Cleanup added in v0.7.0

func (i *OnIssue) Cleanup(ctx core.TriggerContext) error

func (*OnIssue) Color added in v0.5.0

func (i *OnIssue) Color() string

func (*OnIssue) Configuration added in v0.5.0

func (i *OnIssue) Configuration() []configuration.Field

func (*OnIssue) Description added in v0.5.0

func (i *OnIssue) Description() string

func (*OnIssue) Documentation added in v0.5.0

func (i *OnIssue) Documentation() string

func (*OnIssue) ExampleData added in v0.5.0

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

func (*OnIssue) HandleAction added in v0.5.0

func (i *OnIssue) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*OnIssue) HandleWebhook added in v0.5.0

func (i *OnIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnIssue) Icon added in v0.5.0

func (i *OnIssue) Icon() string

func (*OnIssue) Label added in v0.5.0

func (i *OnIssue) Label() string

func (*OnIssue) Name added in v0.5.0

func (i *OnIssue) Name() string

func (*OnIssue) Setup added in v0.5.0

func (i *OnIssue) Setup(ctx core.TriggerContext) error

type OnIssueComment added in v0.5.0

type OnIssueComment struct{}

func (*OnIssueComment) Actions added in v0.5.0

func (i *OnIssueComment) Actions() []core.Action

func (*OnIssueComment) Cleanup added in v0.7.0

func (i *OnIssueComment) Cleanup(ctx core.TriggerContext) error

func (*OnIssueComment) Color added in v0.5.0

func (i *OnIssueComment) Color() string

func (*OnIssueComment) Configuration added in v0.5.0

func (i *OnIssueComment) Configuration() []configuration.Field

func (*OnIssueComment) Description added in v0.5.0

func (i *OnIssueComment) Description() string

func (*OnIssueComment) Documentation added in v0.5.0

func (i *OnIssueComment) Documentation() string

func (*OnIssueComment) ExampleData added in v0.5.0

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

func (*OnIssueComment) HandleAction added in v0.5.0

func (i *OnIssueComment) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*OnIssueComment) HandleWebhook added in v0.5.0

func (i *OnIssueComment) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnIssueComment) Icon added in v0.5.0

func (i *OnIssueComment) Icon() string

func (*OnIssueComment) Label added in v0.5.0

func (i *OnIssueComment) Label() string

func (*OnIssueComment) Name added in v0.5.0

func (i *OnIssueComment) Name() string

func (*OnIssueComment) Setup added in v0.5.0

func (i *OnIssueComment) Setup(ctx core.TriggerContext) error

type OnIssueCommentConfiguration added in v0.5.0

type OnIssueCommentConfiguration struct {
	Repository    string `json:"repository" mapstructure:"repository"`
	ContentFilter string `json:"contentFilter" mapstructure:"contentFilter"`
}

type OnIssueConfiguration added in v0.5.0

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

type OnPRComment added in v0.5.0

type OnPRComment struct{}

func (*OnPRComment) Actions added in v0.5.0

func (p *OnPRComment) Actions() []core.Action

func (*OnPRComment) Cleanup added in v0.7.0

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

func (*OnPRComment) Color added in v0.5.0

func (p *OnPRComment) Color() string

func (*OnPRComment) Configuration added in v0.5.0

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

func (*OnPRComment) Description added in v0.5.0

func (p *OnPRComment) Description() string

func (*OnPRComment) Documentation added in v0.5.0

func (p *OnPRComment) Documentation() string

func (*OnPRComment) ExampleData added in v0.5.0

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

func (*OnPRComment) HandleAction added in v0.5.0

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

func (*OnPRComment) HandleWebhook added in v0.5.0

func (p *OnPRComment) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnPRComment) Icon added in v0.5.0

func (p *OnPRComment) Icon() string

func (*OnPRComment) Label added in v0.5.0

func (p *OnPRComment) Label() string

func (*OnPRComment) Name added in v0.5.0

func (p *OnPRComment) Name() string

func (*OnPRComment) Setup added in v0.5.0

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

type OnPRCommentConfiguration added in v0.5.0

type OnPRCommentConfiguration struct {
	Repository    string `json:"repository" mapstructure:"repository"`
	ContentFilter string `json:"contentFilter" mapstructure:"contentFilter"`
}

type OnPullRequest added in v0.5.0

type OnPullRequest struct{}

func (*OnPullRequest) Actions added in v0.5.0

func (p *OnPullRequest) Actions() []core.Action

func (*OnPullRequest) Cleanup added in v0.7.0

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

func (*OnPullRequest) Color added in v0.5.0

func (p *OnPullRequest) Color() string

func (*OnPullRequest) Configuration added in v0.5.0

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

func (*OnPullRequest) Description added in v0.5.0

func (p *OnPullRequest) Description() string

func (*OnPullRequest) Documentation added in v0.5.0

func (p *OnPullRequest) Documentation() string

func (*OnPullRequest) ExampleData added in v0.5.0

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

func (*OnPullRequest) HandleAction added in v0.5.0

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

func (*OnPullRequest) HandleWebhook added in v0.5.0

func (p *OnPullRequest) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnPullRequest) Icon added in v0.5.0

func (p *OnPullRequest) Icon() string

func (*OnPullRequest) Label added in v0.5.0

func (p *OnPullRequest) Label() string

func (*OnPullRequest) Name added in v0.5.0

func (p *OnPullRequest) Name() string

func (*OnPullRequest) Setup added in v0.5.0

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

type OnPullRequestConfiguration added in v0.5.0

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

type OnPush added in v0.5.0

type OnPush struct{}

func (*OnPush) Actions added in v0.5.0

func (p *OnPush) Actions() []core.Action

func (*OnPush) Cleanup added in v0.7.0

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

func (*OnPush) Color added in v0.5.0

func (p *OnPush) Color() string

func (*OnPush) Configuration added in v0.5.0

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

func (*OnPush) Description added in v0.5.0

func (p *OnPush) Description() string

func (*OnPush) Documentation added in v0.5.0

func (p *OnPush) Documentation() string

func (*OnPush) ExampleData added in v0.5.0

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

func (*OnPush) HandleAction added in v0.5.0

func (p *OnPush) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*OnPush) HandleWebhook added in v0.5.0

func (p *OnPush) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnPush) Icon added in v0.5.0

func (p *OnPush) Icon() string

func (*OnPush) Label added in v0.5.0

func (p *OnPush) Label() string

func (*OnPush) Name added in v0.5.0

func (p *OnPush) Name() string

func (*OnPush) Setup added in v0.5.0

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

type OnPushConfiguration added in v0.5.0

type OnPushConfiguration struct {
	Repository string                    `json:"repository" mapstructure:"repository"`
	Refs       []configuration.Predicate `json:"refs" mapstructure:"refs"`
}

type OnRelease added in v0.5.0

type OnRelease struct{}

func (*OnRelease) Actions added in v0.5.0

func (r *OnRelease) Actions() []core.Action

func (*OnRelease) Cleanup added in v0.7.0

func (r *OnRelease) Cleanup(ctx core.TriggerContext) error

func (*OnRelease) Color added in v0.5.0

func (r *OnRelease) Color() string

func (*OnRelease) Configuration added in v0.5.0

func (r *OnRelease) Configuration() []configuration.Field

func (*OnRelease) Description added in v0.5.0

func (r *OnRelease) Description() string

func (*OnRelease) Documentation added in v0.5.0

func (r *OnRelease) Documentation() string

func (*OnRelease) ExampleData added in v0.5.0

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

func (*OnRelease) HandleAction added in v0.5.0

func (r *OnRelease) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*OnRelease) HandleWebhook added in v0.5.0

func (r *OnRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnRelease) Icon added in v0.5.0

func (r *OnRelease) Icon() string

func (*OnRelease) Label added in v0.5.0

func (r *OnRelease) Label() string

func (*OnRelease) Name added in v0.5.0

func (r *OnRelease) Name() string

func (*OnRelease) Setup added in v0.5.0

func (r *OnRelease) Setup(ctx core.TriggerContext) error

type OnReleaseConfiguration added in v0.5.0

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

type OnTagCreated added in v0.5.0

type OnTagCreated struct{}

func (*OnTagCreated) Actions added in v0.5.0

func (t *OnTagCreated) Actions() []core.Action

func (*OnTagCreated) Cleanup added in v0.7.0

func (t *OnTagCreated) Cleanup(ctx core.TriggerContext) error

func (*OnTagCreated) Color added in v0.5.0

func (t *OnTagCreated) Color() string

func (*OnTagCreated) Configuration added in v0.5.0

func (t *OnTagCreated) Configuration() []configuration.Field

func (*OnTagCreated) Description added in v0.5.0

func (t *OnTagCreated) Description() string

func (*OnTagCreated) Documentation added in v0.5.0

func (t *OnTagCreated) Documentation() string

func (*OnTagCreated) ExampleData added in v0.5.0

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

func (*OnTagCreated) HandleAction added in v0.5.0

func (t *OnTagCreated) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*OnTagCreated) HandleWebhook added in v0.5.0

func (t *OnTagCreated) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnTagCreated) Icon added in v0.5.0

func (t *OnTagCreated) Icon() string

func (*OnTagCreated) Label added in v0.5.0

func (t *OnTagCreated) Label() string

func (*OnTagCreated) Name added in v0.5.0

func (t *OnTagCreated) Name() string

func (*OnTagCreated) Setup added in v0.5.0

func (t *OnTagCreated) Setup(ctx core.TriggerContext) error

type OnTagCreatedConfiguration added in v0.5.0

type OnTagCreatedConfiguration struct {
	Repository string                    `json:"repository"`
	Tags       []configuration.Predicate `json:"tags"`
}

type OnWorkflowRun added in v0.5.0

type OnWorkflowRun struct{}

func (*OnWorkflowRun) Actions added in v0.5.0

func (w *OnWorkflowRun) Actions() []core.Action

func (*OnWorkflowRun) Cleanup added in v0.7.0

func (w *OnWorkflowRun) Cleanup(ctx core.TriggerContext) error

func (*OnWorkflowRun) Color added in v0.5.0

func (w *OnWorkflowRun) Color() string

func (*OnWorkflowRun) Configuration added in v0.5.0

func (w *OnWorkflowRun) Configuration() []configuration.Field

func (*OnWorkflowRun) Description added in v0.5.0

func (w *OnWorkflowRun) Description() string

func (*OnWorkflowRun) Documentation added in v0.5.0

func (w *OnWorkflowRun) Documentation() string

func (*OnWorkflowRun) ExampleData added in v0.5.0

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

func (*OnWorkflowRun) HandleAction added in v0.5.0

func (w *OnWorkflowRun) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)

func (*OnWorkflowRun) HandleWebhook added in v0.5.0

func (w *OnWorkflowRun) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*OnWorkflowRun) Icon added in v0.5.0

func (w *OnWorkflowRun) Icon() string

func (*OnWorkflowRun) Label added in v0.5.0

func (w *OnWorkflowRun) Label() string

func (*OnWorkflowRun) Name added in v0.5.0

func (w *OnWorkflowRun) Name() string

func (*OnWorkflowRun) Setup added in v0.5.0

func (w *OnWorkflowRun) Setup(ctx core.TriggerContext) error

type OnWorkflowRunConfiguration added in v0.5.0

type OnWorkflowRunConfiguration struct {
	Repository    string   `json:"repository" mapstructure:"repository"`
	Conclusions   []string `json:"conclusions" mapstructure:"conclusions"`
	WorkflowFiles []string `json:"workflowFiles" mapstructure:"workflowFiles"`
}

type PublishCommitStatus added in v0.5.0

type PublishCommitStatus struct{}

func (*PublishCommitStatus) Actions added in v0.5.0

func (c *PublishCommitStatus) Actions() []core.Action

func (*PublishCommitStatus) Cancel added in v0.5.0

func (*PublishCommitStatus) Cleanup added in v0.7.0

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

func (*PublishCommitStatus) Color added in v0.5.0

func (c *PublishCommitStatus) Color() string

func (*PublishCommitStatus) Configuration added in v0.5.0

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

func (*PublishCommitStatus) Description added in v0.5.0

func (c *PublishCommitStatus) Description() string

func (*PublishCommitStatus) Documentation added in v0.5.0

func (c *PublishCommitStatus) Documentation() string

func (*PublishCommitStatus) ExampleOutput added in v0.5.0

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

func (*PublishCommitStatus) Execute added in v0.5.0

func (*PublishCommitStatus) HandleAction added in v0.5.0

func (c *PublishCommitStatus) HandleAction(ctx core.ActionContext) error

func (*PublishCommitStatus) HandleWebhook added in v0.5.0

func (c *PublishCommitStatus) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*PublishCommitStatus) Icon added in v0.5.0

func (c *PublishCommitStatus) Icon() string

func (*PublishCommitStatus) Label added in v0.5.0

func (c *PublishCommitStatus) Label() string

func (*PublishCommitStatus) Name added in v0.5.0

func (c *PublishCommitStatus) Name() string

func (*PublishCommitStatus) OutputChannels added in v0.5.0

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

func (*PublishCommitStatus) ProcessQueueItem added in v0.5.0

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

func (*PublishCommitStatus) Setup added in v0.5.0

type PublishCommitStatusConfiguration added in v0.5.0

type PublishCommitStatusConfiguration struct {
	Repository  string `mapstructure:"repository"`
	SHA         string `mapstructure:"sha"`
	State       string `mapstructure:"state"`
	Context     string `mapstructure:"context"`
	Description string `mapstructure:"description"`
	TargetURL   string `mapstructure:"targetUrl"`
}

type Repository

type Repository struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

type RunWorkflow added in v0.5.0

type RunWorkflow struct{}

func (*RunWorkflow) Actions added in v0.5.0

func (r *RunWorkflow) Actions() []core.Action

func (*RunWorkflow) Cancel added in v0.5.0

func (r *RunWorkflow) Cancel(ctx core.ExecutionContext) error

func (*RunWorkflow) Cleanup added in v0.7.0

func (r *RunWorkflow) Cleanup(ctx core.SetupContext) error

func (*RunWorkflow) Color added in v0.5.0

func (r *RunWorkflow) Color() string

func (*RunWorkflow) Configuration added in v0.5.0

func (r *RunWorkflow) Configuration() []configuration.Field

func (*RunWorkflow) Description added in v0.5.0

func (r *RunWorkflow) Description() string

func (*RunWorkflow) Documentation added in v0.5.0

func (r *RunWorkflow) Documentation() string

func (*RunWorkflow) ExampleOutput added in v0.5.0

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

func (*RunWorkflow) Execute added in v0.5.0

func (r *RunWorkflow) Execute(ctx core.ExecutionContext) error

func (*RunWorkflow) HandleAction added in v0.5.0

func (r *RunWorkflow) HandleAction(ctx core.ActionContext) error

func (*RunWorkflow) HandleWebhook added in v0.5.0

func (r *RunWorkflow) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*RunWorkflow) Icon added in v0.5.0

func (r *RunWorkflow) Icon() string

func (*RunWorkflow) Label added in v0.5.0

func (r *RunWorkflow) Label() string

func (*RunWorkflow) Name added in v0.5.0

func (r *RunWorkflow) Name() string

func (*RunWorkflow) OutputChannels added in v0.5.0

func (r *RunWorkflow) OutputChannels(configuration any) []core.OutputChannel

func (*RunWorkflow) ProcessQueueItem added in v0.5.0

func (r *RunWorkflow) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*RunWorkflow) Setup added in v0.5.0

func (r *RunWorkflow) Setup(ctx core.SetupContext) error

type RunWorkflowExecutionMetadata added in v0.5.0

type RunWorkflowExecutionMetadata struct {
	WorkflowRun *WorkflowRunMetadata `json:"workflowRun" mapstructure:"workflowRun"`
}

type RunWorkflowSpec added in v0.5.0

type RunWorkflowSpec struct {
	Repository   string  `json:"repository"`
	WorkflowFile string  `json:"workflowFile"`
	Ref          string  `json:"ref"`
	Inputs       []Input `json:"inputs"`
}

type UpdateIssue added in v0.5.0

type UpdateIssue struct{}

func (*UpdateIssue) Actions added in v0.5.0

func (c *UpdateIssue) Actions() []core.Action

func (*UpdateIssue) Cancel added in v0.5.0

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

func (*UpdateIssue) Cleanup added in v0.7.0

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

func (*UpdateIssue) Color added in v0.5.0

func (c *UpdateIssue) Color() string

func (*UpdateIssue) Configuration added in v0.5.0

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

func (*UpdateIssue) Description added in v0.5.0

func (c *UpdateIssue) Description() string

func (*UpdateIssue) Documentation added in v0.5.0

func (c *UpdateIssue) Documentation() string

func (*UpdateIssue) ExampleOutput added in v0.5.0

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

func (*UpdateIssue) Execute added in v0.5.0

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

func (*UpdateIssue) HandleAction added in v0.5.0

func (c *UpdateIssue) HandleAction(ctx core.ActionContext) error

func (*UpdateIssue) HandleWebhook added in v0.5.0

func (c *UpdateIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*UpdateIssue) Icon added in v0.5.0

func (c *UpdateIssue) Icon() string

func (*UpdateIssue) Label added in v0.5.0

func (c *UpdateIssue) Label() string

func (*UpdateIssue) Name added in v0.5.0

func (c *UpdateIssue) Name() string

func (*UpdateIssue) OutputChannels added in v0.5.0

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

func (*UpdateIssue) ProcessQueueItem added in v0.5.0

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

func (*UpdateIssue) Setup added in v0.5.0

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

type UpdateIssueConfiguration added in v0.5.0

type UpdateIssueConfiguration struct {
	Repository  string   `json:"repository" mapstructure:"repository"`
	IssueNumber int      `json:"issueNumber" mapstructure:"issueNumber"`
	Title       string   `json:"title" mapstructure:"title"`
	Body        string   `json:"body" mapstructure:"body"`
	State       string   `json:"state" mapstructure:"state"`
	Assignees   []string `json:"assignees" mapstructure:"assignees"`
	Labels      []string `json:"labels" mapstructure:"labels"`
}

type UpdateRelease added in v0.5.0

type UpdateRelease struct{}

func (*UpdateRelease) Actions added in v0.5.0

func (c *UpdateRelease) Actions() []core.Action

func (*UpdateRelease) Cancel added in v0.5.0

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

func (*UpdateRelease) Cleanup added in v0.7.0

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

func (*UpdateRelease) Color added in v0.5.0

func (c *UpdateRelease) Color() string

func (*UpdateRelease) Configuration added in v0.5.0

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

func (*UpdateRelease) Description added in v0.5.0

func (c *UpdateRelease) Description() string

func (*UpdateRelease) Documentation added in v0.5.0

func (c *UpdateRelease) Documentation() string

func (*UpdateRelease) ExampleOutput added in v0.5.0

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

func (*UpdateRelease) Execute added in v0.5.0

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

func (*UpdateRelease) HandleAction added in v0.5.0

func (c *UpdateRelease) HandleAction(ctx core.ActionContext) error

func (*UpdateRelease) HandleWebhook added in v0.5.0

func (c *UpdateRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*UpdateRelease) Icon added in v0.5.0

func (c *UpdateRelease) Icon() string

func (*UpdateRelease) Label added in v0.5.0

func (c *UpdateRelease) Label() string

func (*UpdateRelease) Name added in v0.5.0

func (c *UpdateRelease) Name() string

func (*UpdateRelease) OutputChannels added in v0.5.0

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

func (*UpdateRelease) ProcessQueueItem added in v0.5.0

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

func (*UpdateRelease) Setup added in v0.5.0

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

type UpdateReleaseConfiguration added in v0.5.0

type UpdateReleaseConfiguration struct {
	Repository           string `mapstructure:"repository"`
	ReleaseStrategy      string `mapstructure:"releaseStrategy"`
	TagName              string `mapstructure:"tagName"`
	Name                 string `mapstructure:"name"`
	Body                 string `mapstructure:"body"`
	Draft                bool   `mapstructure:"draft"`
	Prerelease           bool   `mapstructure:"prerelease"`
	GenerateReleaseNotes bool   `mapstructure:"generateReleaseNotes"`
}

type Webhook

type Webhook struct {
	ID          int64  `json:"id"`
	WebhookName string `json:"name"`
}

type WebhookConfiguration

type WebhookConfiguration struct {
	EventType  string   `json:"eventType"`
	EventTypes []string `json:"eventTypes"` // Multiple event types (takes precedence over EventType if set)
	Repository string   `json:"repository"`
}

type WorkflowRunMetadata added in v0.5.0

type WorkflowRunMetadata struct {
	ID         int64  `json:"id"`
	Status     string `json:"status"`
	Conclusion string `json:"conclusion"`
	URL        string `json:"url"`
}

Jump to

Keyboard shortcuts

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