Documentation
¶
Index ¶
- Constants
- func NewClient(ctx core.AppInstallationContext, ghAppID int64, installationID string) (*github.Client, error)
- type Configuration
- type CreateIssue
- func (c *CreateIssue) Actions() []core.Action
- func (c *CreateIssue) Cancel(ctx core.ExecutionContext) error
- func (c *CreateIssue) Color() string
- func (c *CreateIssue) Configuration() []configuration.Field
- func (c *CreateIssue) Description() string
- func (c *CreateIssue) Execute(ctx core.ExecutionContext) error
- func (c *CreateIssue) HandleAction(ctx core.ActionContext) error
- func (c *CreateIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *CreateIssue) Icon() string
- func (c *CreateIssue) Label() string
- func (c *CreateIssue) Name() string
- func (c *CreateIssue) OutputChannels(configuration any) []core.OutputChannel
- func (c *CreateIssue) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CreateIssue) Setup(ctx core.SetupContext) error
- type CreateIssueConfiguration
- type GetIssue
- func (c *GetIssue) Actions() []core.Action
- func (c *GetIssue) Cancel(ctx core.ExecutionContext) error
- func (c *GetIssue) Color() string
- func (c *GetIssue) Configuration() []configuration.Field
- func (c *GetIssue) Description() string
- func (c *GetIssue) Execute(ctx core.ExecutionContext) error
- func (c *GetIssue) HandleAction(ctx core.ActionContext) error
- func (c *GetIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *GetIssue) Icon() string
- func (c *GetIssue) Label() string
- func (c *GetIssue) Name() string
- func (c *GetIssue) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetIssue) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetIssue) Setup(ctx core.SetupContext) error
- type GetIssueConfiguration
- type GitHub
- func (g *GitHub) CleanupWebhook(ctx core.CleanupWebhookContext) error
- func (g *GitHub) CompareWebhookConfig(a, b any) (bool, error)
- func (g *GitHub) Components() []core.Component
- func (g *GitHub) Configuration() []configuration.Field
- func (g *GitHub) Description() string
- func (g *GitHub) HandleRequest(ctx core.HTTPRequestContext)
- func (g *GitHub) Icon() string
- func (g *GitHub) Label() string
- func (g *GitHub) Name() string
- func (g *GitHub) SetupWebhook(ctx core.SetupWebhookContext) (any, error)
- func (g *GitHub) Sync(ctx core.SyncContext) error
- func (g *GitHub) Triggers() []core.Trigger
- type GitHubAppData
- type GitHubAppMetadata
- type Input
- type Metadata
- type NodeMetadata
- type OnBranchCreated
- func (t *OnBranchCreated) Actions() []core.Action
- func (t *OnBranchCreated) Color() string
- func (t *OnBranchCreated) Configuration() []configuration.Field
- func (t *OnBranchCreated) Description() string
- func (t *OnBranchCreated) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (t *OnBranchCreated) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (t *OnBranchCreated) Icon() string
- func (t *OnBranchCreated) Label() string
- func (t *OnBranchCreated) Name() string
- func (t *OnBranchCreated) Setup(ctx core.TriggerContext) error
- type OnBranchCreatedConfiguration
- type OnIssue
- func (i *OnIssue) Actions() []core.Action
- func (i *OnIssue) Color() string
- func (i *OnIssue) Configuration() []configuration.Field
- func (i *OnIssue) Description() string
- func (i *OnIssue) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (i *OnIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (i *OnIssue) Icon() string
- func (i *OnIssue) Label() string
- func (i *OnIssue) Name() string
- func (i *OnIssue) Setup(ctx core.TriggerContext) error
- type OnIssueConfiguration
- type OnPullRequest
- func (p *OnPullRequest) Actions() []core.Action
- func (p *OnPullRequest) Color() string
- func (p *OnPullRequest) Configuration() []configuration.Field
- func (p *OnPullRequest) Description() string
- func (p *OnPullRequest) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (p *OnPullRequest) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (p *OnPullRequest) Icon() string
- func (p *OnPullRequest) Label() string
- func (p *OnPullRequest) Name() string
- func (p *OnPullRequest) Setup(ctx core.TriggerContext) error
- type OnPullRequestConfiguration
- type OnPush
- func (p *OnPush) Actions() []core.Action
- func (p *OnPush) Color() string
- func (p *OnPush) Configuration() []configuration.Field
- func (p *OnPush) Description() string
- func (p *OnPush) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (p *OnPush) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (p *OnPush) Icon() string
- func (p *OnPush) Label() string
- func (p *OnPush) Name() string
- func (p *OnPush) Setup(ctx core.TriggerContext) error
- type OnPushConfiguration
- type OnRelease
- func (r *OnRelease) Actions() []core.Action
- func (r *OnRelease) Color() string
- func (r *OnRelease) Configuration() []configuration.Field
- func (r *OnRelease) Description() string
- func (r *OnRelease) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (r *OnRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (r *OnRelease) Icon() string
- func (r *OnRelease) Label() string
- func (r *OnRelease) Name() string
- func (r *OnRelease) Setup(ctx core.TriggerContext) error
- type OnReleaseConfiguration
- type OnTagCreated
- func (t *OnTagCreated) Actions() []core.Action
- func (t *OnTagCreated) Color() string
- func (t *OnTagCreated) Configuration() []configuration.Field
- func (t *OnTagCreated) Description() string
- func (t *OnTagCreated) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (t *OnTagCreated) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (t *OnTagCreated) Icon() string
- func (t *OnTagCreated) Label() string
- func (t *OnTagCreated) Name() string
- func (t *OnTagCreated) Setup(ctx core.TriggerContext) error
- type OnTagCreatedConfiguration
- type Repository
- type RunWorkflow
- func (r *RunWorkflow) Actions() []core.Action
- func (r *RunWorkflow) Cancel(ctx core.ExecutionContext) error
- func (r *RunWorkflow) Color() string
- func (r *RunWorkflow) Configuration() []configuration.Field
- func (r *RunWorkflow) Description() string
- func (r *RunWorkflow) Execute(ctx core.ExecutionContext) error
- func (r *RunWorkflow) HandleAction(ctx core.ActionContext) error
- func (r *RunWorkflow) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (r *RunWorkflow) Icon() string
- func (r *RunWorkflow) Label() string
- func (r *RunWorkflow) Name() string
- func (r *RunWorkflow) OutputChannels(configuration any) []core.OutputChannel
- func (r *RunWorkflow) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (r *RunWorkflow) Setup(ctx core.SetupContext) error
- type RunWorkflowExecutionMetadata
- type RunWorkflowSpec
- type UpdateIssue
- func (c *UpdateIssue) Actions() []core.Action
- func (c *UpdateIssue) Cancel(ctx core.ExecutionContext) error
- func (c *UpdateIssue) Color() string
- func (c *UpdateIssue) Configuration() []configuration.Field
- func (c *UpdateIssue) Description() string
- func (c *UpdateIssue) Execute(ctx core.ExecutionContext) error
- func (c *UpdateIssue) HandleAction(ctx core.ActionContext) error
- func (c *UpdateIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *UpdateIssue) Icon() string
- func (c *UpdateIssue) Label() string
- func (c *UpdateIssue) Name() string
- func (c *UpdateIssue) OutputChannels(configuration any) []core.OutputChannel
- func (c *UpdateIssue) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *UpdateIssue) Setup(ctx core.SetupContext) error
- type UpdateIssueConfiguration
- type Webhook
- type WebhookConfiguration
- type WorkflowRunMetadata
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 ¶
Types ¶
type Configuration ¶
type Configuration struct {
Organization string `json:"organization"`
}
type CreateIssue ¶ added in v0.0.18
type CreateIssue struct{}
func (*CreateIssue) Actions ¶ added in v0.0.18
func (c *CreateIssue) Actions() []core.Action
func (*CreateIssue) Cancel ¶ added in v0.0.18
func (c *CreateIssue) Cancel(ctx core.ExecutionContext) error
func (*CreateIssue) Color ¶ added in v0.0.18
func (c *CreateIssue) Color() string
func (*CreateIssue) Configuration ¶ added in v0.0.18
func (c *CreateIssue) Configuration() []configuration.Field
func (*CreateIssue) Description ¶ added in v0.0.18
func (c *CreateIssue) Description() string
func (*CreateIssue) Execute ¶ added in v0.0.18
func (c *CreateIssue) Execute(ctx core.ExecutionContext) error
func (*CreateIssue) HandleAction ¶ added in v0.0.18
func (c *CreateIssue) HandleAction(ctx core.ActionContext) error
func (*CreateIssue) HandleWebhook ¶ added in v0.0.18
func (c *CreateIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*CreateIssue) Icon ¶ added in v0.0.18
func (c *CreateIssue) Icon() string
func (*CreateIssue) Label ¶ added in v0.0.18
func (c *CreateIssue) Label() string
func (*CreateIssue) Name ¶ added in v0.0.18
func (c *CreateIssue) Name() string
func (*CreateIssue) OutputChannels ¶ added in v0.0.18
func (c *CreateIssue) OutputChannels(configuration any) []core.OutputChannel
func (*CreateIssue) ProcessQueueItem ¶ added in v0.0.18
func (c *CreateIssue) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CreateIssue) Setup ¶ added in v0.0.18
func (c *CreateIssue) Setup(ctx core.SetupContext) error
type CreateIssueConfiguration ¶ added in v0.0.18
type GetIssue ¶ added in v0.0.18
type GetIssue struct{}
func (*GetIssue) Cancel ¶ added in v0.0.18
func (c *GetIssue) Cancel(ctx core.ExecutionContext) error
func (*GetIssue) Configuration ¶ added in v0.0.18
func (c *GetIssue) Configuration() []configuration.Field
func (*GetIssue) Description ¶ added in v0.0.18
func (*GetIssue) Execute ¶ added in v0.0.18
func (c *GetIssue) Execute(ctx core.ExecutionContext) error
func (*GetIssue) HandleAction ¶ added in v0.0.18
func (c *GetIssue) HandleAction(ctx core.ActionContext) error
func (*GetIssue) HandleWebhook ¶ added in v0.0.18
func (c *GetIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*GetIssue) OutputChannels ¶ added in v0.0.18
func (c *GetIssue) OutputChannels(configuration any) []core.OutputChannel
func (*GetIssue) ProcessQueueItem ¶ added in v0.0.18
type GetIssueConfiguration ¶ added in v0.0.18
type GitHub ¶
type GitHub struct {
}
func (*GitHub) CleanupWebhook ¶
func (g *GitHub) CleanupWebhook(ctx core.CleanupWebhookContext) error
func (*GitHub) Components ¶
func (*GitHub) Configuration ¶
func (g *GitHub) Configuration() []configuration.Field
func (*GitHub) Description ¶
func (*GitHub) HandleRequest ¶
func (g *GitHub) HandleRequest(ctx core.HTTPRequestContext)
func (*GitHub) SetupWebhook ¶
func (g *GitHub) SetupWebhook(ctx core.SetupWebhookContext) (any, error)
type GitHubAppData ¶
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 ¶
type Metadata ¶
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.0.18
type NodeMetadata struct {
Repository *Repository `json:"repository"`
}
type OnBranchCreated ¶ added in v0.0.18
type OnBranchCreated struct{}
func (*OnBranchCreated) Actions ¶ added in v0.0.18
func (t *OnBranchCreated) Actions() []core.Action
func (*OnBranchCreated) Color ¶ added in v0.0.18
func (t *OnBranchCreated) Color() string
func (*OnBranchCreated) Configuration ¶ added in v0.0.18
func (t *OnBranchCreated) Configuration() []configuration.Field
func (*OnBranchCreated) Description ¶ added in v0.0.18
func (t *OnBranchCreated) Description() string
func (*OnBranchCreated) HandleAction ¶ added in v0.0.18
func (t *OnBranchCreated) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnBranchCreated) HandleWebhook ¶ added in v0.0.18
func (t *OnBranchCreated) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnBranchCreated) Icon ¶ added in v0.0.18
func (t *OnBranchCreated) Icon() string
func (*OnBranchCreated) Label ¶ added in v0.0.18
func (t *OnBranchCreated) Label() string
func (*OnBranchCreated) Name ¶ added in v0.0.18
func (t *OnBranchCreated) Name() string
func (*OnBranchCreated) Setup ¶ added in v0.0.18
func (t *OnBranchCreated) Setup(ctx core.TriggerContext) error
type OnBranchCreatedConfiguration ¶ added in v0.0.18
type OnBranchCreatedConfiguration struct {
Repository string `json:"repository"`
Branches []configuration.Predicate `json:"branches"`
}
type OnIssue ¶
type OnIssue struct{}
func (*OnIssue) Configuration ¶
func (i *OnIssue) Configuration() []configuration.Field
func (*OnIssue) Description ¶
func (*OnIssue) HandleAction ¶
func (*OnIssue) HandleWebhook ¶
func (i *OnIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnIssueConfiguration ¶
type OnPullRequest ¶
type OnPullRequest struct{}
func (*OnPullRequest) Actions ¶
func (p *OnPullRequest) Actions() []core.Action
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) HandleAction ¶
func (p *OnPullRequest) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnPullRequest) HandleWebhook ¶
func (p *OnPullRequest) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
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 OnPush ¶
type OnPush struct{}
func (*OnPush) Configuration ¶
func (p *OnPush) Configuration() []configuration.Field
func (*OnPush) Description ¶
func (*OnPush) HandleAction ¶
func (*OnPush) HandleWebhook ¶
func (p *OnPush) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnPushConfiguration ¶
type OnPushConfiguration struct {
Repository string `json:"repository" mapstructure:"repository"`
Refs []configuration.Predicate `json:"refs" mapstructure:"refs"`
}
type OnRelease ¶
type OnRelease struct{}
func (*OnRelease) Configuration ¶
func (r *OnRelease) Configuration() []configuration.Field
func (*OnRelease) Description ¶
func (*OnRelease) HandleAction ¶
func (*OnRelease) HandleWebhook ¶
func (r *OnRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnReleaseConfiguration ¶
type OnTagCreated ¶ added in v0.0.18
type OnTagCreated struct{}
func (*OnTagCreated) Actions ¶ added in v0.0.18
func (t *OnTagCreated) Actions() []core.Action
func (*OnTagCreated) Color ¶ added in v0.0.18
func (t *OnTagCreated) Color() string
func (*OnTagCreated) Configuration ¶ added in v0.0.18
func (t *OnTagCreated) Configuration() []configuration.Field
func (*OnTagCreated) Description ¶ added in v0.0.18
func (t *OnTagCreated) Description() string
func (*OnTagCreated) HandleAction ¶ added in v0.0.18
func (t *OnTagCreated) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnTagCreated) HandleWebhook ¶ added in v0.0.18
func (t *OnTagCreated) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnTagCreated) Icon ¶ added in v0.0.18
func (t *OnTagCreated) Icon() string
func (*OnTagCreated) Label ¶ added in v0.0.18
func (t *OnTagCreated) Label() string
func (*OnTagCreated) Name ¶ added in v0.0.18
func (t *OnTagCreated) Name() string
func (*OnTagCreated) Setup ¶ added in v0.0.18
func (t *OnTagCreated) Setup(ctx core.TriggerContext) error
type OnTagCreatedConfiguration ¶ added in v0.0.18
type OnTagCreatedConfiguration struct {
Repository string `json:"repository"`
Tags []configuration.Predicate `json:"tags"`
}
type Repository ¶
type RunWorkflow ¶ added in v0.0.18
type RunWorkflow struct{}
func (*RunWorkflow) Actions ¶ added in v0.0.18
func (r *RunWorkflow) Actions() []core.Action
func (*RunWorkflow) Cancel ¶ added in v0.0.18
func (r *RunWorkflow) Cancel(ctx core.ExecutionContext) error
func (*RunWorkflow) Color ¶ added in v0.0.18
func (r *RunWorkflow) Color() string
func (*RunWorkflow) Configuration ¶ added in v0.0.18
func (r *RunWorkflow) Configuration() []configuration.Field
func (*RunWorkflow) Description ¶ added in v0.0.18
func (r *RunWorkflow) Description() string
func (*RunWorkflow) Execute ¶ added in v0.0.18
func (r *RunWorkflow) Execute(ctx core.ExecutionContext) error
func (*RunWorkflow) HandleAction ¶ added in v0.0.18
func (r *RunWorkflow) HandleAction(ctx core.ActionContext) error
func (*RunWorkflow) HandleWebhook ¶ added in v0.0.18
func (r *RunWorkflow) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*RunWorkflow) Icon ¶ added in v0.0.18
func (r *RunWorkflow) Icon() string
func (*RunWorkflow) Label ¶ added in v0.0.18
func (r *RunWorkflow) Label() string
func (*RunWorkflow) Name ¶ added in v0.0.18
func (r *RunWorkflow) Name() string
func (*RunWorkflow) OutputChannels ¶ added in v0.0.18
func (r *RunWorkflow) OutputChannels(configuration any) []core.OutputChannel
func (*RunWorkflow) ProcessQueueItem ¶ added in v0.0.18
func (r *RunWorkflow) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*RunWorkflow) Setup ¶ added in v0.0.18
func (r *RunWorkflow) Setup(ctx core.SetupContext) error
type RunWorkflowExecutionMetadata ¶ added in v0.0.18
type RunWorkflowExecutionMetadata struct {
WorkflowRun *WorkflowRunMetadata `json:"workflowRun" mapstructure:"workflowRun"`
}
type RunWorkflowSpec ¶ added in v0.0.18
type UpdateIssue ¶ added in v0.0.18
type UpdateIssue struct{}
func (*UpdateIssue) Actions ¶ added in v0.0.18
func (c *UpdateIssue) Actions() []core.Action
func (*UpdateIssue) Cancel ¶ added in v0.0.18
func (c *UpdateIssue) Cancel(ctx core.ExecutionContext) error
func (*UpdateIssue) Color ¶ added in v0.0.18
func (c *UpdateIssue) Color() string
func (*UpdateIssue) Configuration ¶ added in v0.0.18
func (c *UpdateIssue) Configuration() []configuration.Field
func (*UpdateIssue) Description ¶ added in v0.0.18
func (c *UpdateIssue) Description() string
func (*UpdateIssue) Execute ¶ added in v0.0.18
func (c *UpdateIssue) Execute(ctx core.ExecutionContext) error
func (*UpdateIssue) HandleAction ¶ added in v0.0.18
func (c *UpdateIssue) HandleAction(ctx core.ActionContext) error
func (*UpdateIssue) HandleWebhook ¶ added in v0.0.18
func (c *UpdateIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*UpdateIssue) Icon ¶ added in v0.0.18
func (c *UpdateIssue) Icon() string
func (*UpdateIssue) Label ¶ added in v0.0.18
func (c *UpdateIssue) Label() string
func (*UpdateIssue) Name ¶ added in v0.0.18
func (c *UpdateIssue) Name() string
func (*UpdateIssue) OutputChannels ¶ added in v0.0.18
func (c *UpdateIssue) OutputChannels(configuration any) []core.OutputChannel
func (*UpdateIssue) ProcessQueueItem ¶ added in v0.0.18
func (c *UpdateIssue) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*UpdateIssue) Setup ¶ added in v0.0.18
func (c *UpdateIssue) Setup(ctx core.SetupContext) error
type UpdateIssueConfiguration ¶ added in v0.0.18
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 WebhookConfiguration ¶
Click to show internal directories.
Click to hide internal directories.