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) ExampleOutput() map[string]any
- 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 CreateRelease
- func (c *CreateRelease) Actions() []core.Action
- func (c *CreateRelease) Cancel(ctx core.ExecutionContext) error
- func (c *CreateRelease) Color() string
- func (c *CreateRelease) Configuration() []configuration.Field
- func (c *CreateRelease) Description() string
- func (c *CreateRelease) ExampleOutput() map[string]any
- func (c *CreateRelease) Execute(ctx core.ExecutionContext) error
- func (c *CreateRelease) HandleAction(ctx core.ActionContext) error
- func (c *CreateRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *CreateRelease) Icon() string
- func (c *CreateRelease) Label() string
- func (c *CreateRelease) Name() string
- func (c *CreateRelease) OutputChannels(configuration any) []core.OutputChannel
- func (c *CreateRelease) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CreateRelease) Setup(ctx core.SetupContext) error
- type CreateReleaseConfiguration
- type DeleteRelease
- func (c *DeleteRelease) Actions() []core.Action
- func (c *DeleteRelease) Cancel(ctx core.ExecutionContext) error
- func (c *DeleteRelease) Color() string
- func (c *DeleteRelease) Configuration() []configuration.Field
- func (c *DeleteRelease) Description() string
- func (c *DeleteRelease) ExampleOutput() map[string]any
- func (c *DeleteRelease) Execute(ctx core.ExecutionContext) error
- func (c *DeleteRelease) HandleAction(ctx core.ActionContext) error
- func (c *DeleteRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *DeleteRelease) Icon() string
- func (c *DeleteRelease) Label() string
- func (c *DeleteRelease) Name() string
- func (c *DeleteRelease) OutputChannels(configuration any) []core.OutputChannel
- func (c *DeleteRelease) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *DeleteRelease) Setup(ctx core.SetupContext) error
- type DeleteReleaseConfiguration
- 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) ExampleOutput() map[string]any
- 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) InstallationInstructions() string
- func (g *GitHub) Label() string
- func (g *GitHub) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.ApplicationResource, error)
- 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) ExampleData() map[string]any
- 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 (t *OnIssue) ExampleData() map[string]any
- 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 OnIssueComment
- func (i *OnIssueComment) Actions() []core.Action
- func (i *OnIssueComment) Color() string
- func (i *OnIssueComment) Configuration() []configuration.Field
- func (i *OnIssueComment) Description() string
- func (t *OnIssueComment) ExampleData() map[string]any
- func (i *OnIssueComment) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (i *OnIssueComment) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (i *OnIssueComment) Icon() string
- func (i *OnIssueComment) Label() string
- func (i *OnIssueComment) Name() string
- func (i *OnIssueComment) Setup(ctx core.TriggerContext) error
- type OnIssueCommentConfiguration
- type OnIssueConfiguration
- type OnPRComment
- func (p *OnPRComment) Actions() []core.Action
- func (p *OnPRComment) Color() string
- func (p *OnPRComment) Configuration() []configuration.Field
- func (p *OnPRComment) Description() string
- func (t *OnPRComment) ExampleData() map[string]any
- func (p *OnPRComment) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (p *OnPRComment) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (p *OnPRComment) Icon() string
- func (p *OnPRComment) Label() string
- func (p *OnPRComment) Name() string
- func (p *OnPRComment) Setup(ctx core.TriggerContext) error
- type OnPRCommentConfiguration
- 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 (t *OnPullRequest) ExampleData() map[string]any
- 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 (t *OnPush) ExampleData() map[string]any
- 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 (t *OnRelease) ExampleData() map[string]any
- 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) ExampleData() map[string]any
- 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 PublishCommitStatus
- func (c *PublishCommitStatus) Actions() []core.Action
- func (c *PublishCommitStatus) Cancel(ctx core.ExecutionContext) error
- func (c *PublishCommitStatus) Color() string
- func (c *PublishCommitStatus) Configuration() []configuration.Field
- func (c *PublishCommitStatus) Description() string
- func (c *PublishCommitStatus) ExampleOutput() map[string]any
- func (c *PublishCommitStatus) Execute(ctx core.ExecutionContext) error
- func (c *PublishCommitStatus) HandleAction(ctx core.ActionContext) error
- func (c *PublishCommitStatus) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *PublishCommitStatus) Icon() string
- func (c *PublishCommitStatus) Label() string
- func (c *PublishCommitStatus) Name() string
- func (c *PublishCommitStatus) OutputChannels(configuration any) []core.OutputChannel
- func (c *PublishCommitStatus) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *PublishCommitStatus) Setup(ctx core.SetupContext) error
- type PublishCommitStatusConfiguration
- 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 (c *RunWorkflow) ExampleOutput() map[string]any
- 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) ExampleOutput() map[string]any
- 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 UpdateRelease
- func (c *UpdateRelease) Actions() []core.Action
- func (c *UpdateRelease) Cancel(ctx core.ExecutionContext) error
- func (c *UpdateRelease) Color() string
- func (c *UpdateRelease) Configuration() []configuration.Field
- func (c *UpdateRelease) Description() string
- func (c *UpdateRelease) ExampleOutput() map[string]any
- func (c *UpdateRelease) Execute(ctx core.ExecutionContext) error
- func (c *UpdateRelease) HandleAction(ctx core.ActionContext) error
- func (c *UpdateRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *UpdateRelease) Icon() string
- func (c *UpdateRelease) Label() string
- func (c *UpdateRelease) Name() string
- func (c *UpdateRelease) OutputChannels(configuration any) []core.OutputChannel
- func (c *UpdateRelease) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *UpdateRelease) Setup(ctx core.SetupContext) error
- type UpdateReleaseConfiguration
- 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) ExampleOutput ¶ added in v0.0.45
func (c *CreateIssue) ExampleOutput() map[string]any
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 CreateRelease ¶ added in v0.0.43
type CreateRelease struct{}
func (*CreateRelease) Actions ¶ added in v0.0.43
func (c *CreateRelease) Actions() []core.Action
func (*CreateRelease) Cancel ¶ added in v0.0.43
func (c *CreateRelease) Cancel(ctx core.ExecutionContext) error
func (*CreateRelease) Color ¶ added in v0.0.43
func (c *CreateRelease) Color() string
func (*CreateRelease) Configuration ¶ added in v0.0.43
func (c *CreateRelease) Configuration() []configuration.Field
func (*CreateRelease) Description ¶ added in v0.0.43
func (c *CreateRelease) Description() string
func (*CreateRelease) ExampleOutput ¶ added in v0.0.45
func (c *CreateRelease) ExampleOutput() map[string]any
func (*CreateRelease) Execute ¶ added in v0.0.43
func (c *CreateRelease) Execute(ctx core.ExecutionContext) error
func (*CreateRelease) HandleAction ¶ added in v0.0.43
func (c *CreateRelease) HandleAction(ctx core.ActionContext) error
func (*CreateRelease) HandleWebhook ¶ added in v0.0.43
func (c *CreateRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*CreateRelease) Icon ¶ added in v0.0.43
func (c *CreateRelease) Icon() string
func (*CreateRelease) Label ¶ added in v0.0.43
func (c *CreateRelease) Label() string
func (*CreateRelease) Name ¶ added in v0.0.43
func (c *CreateRelease) Name() string
func (*CreateRelease) OutputChannels ¶ added in v0.0.43
func (c *CreateRelease) OutputChannels(configuration any) []core.OutputChannel
func (*CreateRelease) ProcessQueueItem ¶ added in v0.0.43
func (c *CreateRelease) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CreateRelease) Setup ¶ added in v0.0.43
func (c *CreateRelease) Setup(ctx core.SetupContext) error
type CreateReleaseConfiguration ¶ added in v0.0.43
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.0.45
type DeleteRelease struct{}
func (*DeleteRelease) Actions ¶ added in v0.0.45
func (c *DeleteRelease) Actions() []core.Action
func (*DeleteRelease) Cancel ¶ added in v0.0.45
func (c *DeleteRelease) Cancel(ctx core.ExecutionContext) error
func (*DeleteRelease) Color ¶ added in v0.0.45
func (c *DeleteRelease) Color() string
func (*DeleteRelease) Configuration ¶ added in v0.0.45
func (c *DeleteRelease) Configuration() []configuration.Field
func (*DeleteRelease) Description ¶ added in v0.0.45
func (c *DeleteRelease) Description() string
func (*DeleteRelease) ExampleOutput ¶ added in v0.0.45
func (c *DeleteRelease) ExampleOutput() map[string]any
func (*DeleteRelease) Execute ¶ added in v0.0.45
func (c *DeleteRelease) Execute(ctx core.ExecutionContext) error
func (*DeleteRelease) HandleAction ¶ added in v0.0.45
func (c *DeleteRelease) HandleAction(ctx core.ActionContext) error
func (*DeleteRelease) HandleWebhook ¶ added in v0.0.45
func (c *DeleteRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*DeleteRelease) Icon ¶ added in v0.0.45
func (c *DeleteRelease) Icon() string
func (*DeleteRelease) Label ¶ added in v0.0.45
func (c *DeleteRelease) Label() string
func (*DeleteRelease) Name ¶ added in v0.0.45
func (c *DeleteRelease) Name() string
func (*DeleteRelease) OutputChannels ¶ added in v0.0.45
func (c *DeleteRelease) OutputChannels(configuration any) []core.OutputChannel
func (*DeleteRelease) ProcessQueueItem ¶ added in v0.0.45
func (c *DeleteRelease) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*DeleteRelease) Setup ¶ added in v0.0.45
func (c *DeleteRelease) Setup(ctx core.SetupContext) error
type DeleteReleaseConfiguration ¶ added in v0.0.45
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) ExampleOutput ¶ added in v0.0.45
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) InstallationInstructions ¶ added in v0.0.45
func (*GitHub) ListResources ¶ added in v0.0.43
func (g *GitHub) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.ApplicationResource, error)
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) ExampleData ¶ added in v0.0.45
func (t *OnBranchCreated) ExampleData() map[string]any
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) ExampleData ¶ added in v0.0.45
func (*OnIssue) HandleAction ¶
func (*OnIssue) HandleWebhook ¶
func (i *OnIssue) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnIssueComment ¶ added in v0.0.43
type OnIssueComment struct{}
func (*OnIssueComment) Actions ¶ added in v0.0.43
func (i *OnIssueComment) Actions() []core.Action
func (*OnIssueComment) Color ¶ added in v0.0.43
func (i *OnIssueComment) Color() string
func (*OnIssueComment) Configuration ¶ added in v0.0.43
func (i *OnIssueComment) Configuration() []configuration.Field
func (*OnIssueComment) Description ¶ added in v0.0.43
func (i *OnIssueComment) Description() string
func (*OnIssueComment) ExampleData ¶ added in v0.0.45
func (t *OnIssueComment) ExampleData() map[string]any
func (*OnIssueComment) HandleAction ¶ added in v0.0.43
func (i *OnIssueComment) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnIssueComment) HandleWebhook ¶ added in v0.0.43
func (i *OnIssueComment) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnIssueComment) Icon ¶ added in v0.0.43
func (i *OnIssueComment) Icon() string
func (*OnIssueComment) Label ¶ added in v0.0.43
func (i *OnIssueComment) Label() string
func (*OnIssueComment) Name ¶ added in v0.0.43
func (i *OnIssueComment) Name() string
func (*OnIssueComment) Setup ¶ added in v0.0.43
func (i *OnIssueComment) Setup(ctx core.TriggerContext) error
type OnIssueCommentConfiguration ¶ added in v0.0.43
type OnIssueConfiguration ¶
type OnPRComment ¶ added in v0.1.1
type OnPRComment struct{}
func (*OnPRComment) Actions ¶ added in v0.1.1
func (p *OnPRComment) Actions() []core.Action
func (*OnPRComment) Color ¶ added in v0.1.1
func (p *OnPRComment) Color() string
func (*OnPRComment) Configuration ¶ added in v0.1.1
func (p *OnPRComment) Configuration() []configuration.Field
func (*OnPRComment) Description ¶ added in v0.1.1
func (p *OnPRComment) Description() string
func (*OnPRComment) ExampleData ¶ added in v0.1.1
func (t *OnPRComment) ExampleData() map[string]any
func (*OnPRComment) HandleAction ¶ added in v0.1.1
func (p *OnPRComment) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
func (*OnPRComment) HandleWebhook ¶ added in v0.1.1
func (p *OnPRComment) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*OnPRComment) Icon ¶ added in v0.1.1
func (p *OnPRComment) Icon() string
func (*OnPRComment) Label ¶ added in v0.1.1
func (p *OnPRComment) Label() string
func (*OnPRComment) Name ¶ added in v0.1.1
func (p *OnPRComment) Name() string
func (*OnPRComment) Setup ¶ added in v0.1.1
func (p *OnPRComment) Setup(ctx core.TriggerContext) error
type OnPRCommentConfiguration ¶ added in v0.1.1
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) ExampleData ¶ added in v0.0.45
func (t *OnPullRequest) ExampleData() map[string]any
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) ExampleData ¶ added in v0.0.45
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) ExampleData ¶ added in v0.0.45
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) ExampleData ¶ added in v0.0.45
func (t *OnTagCreated) ExampleData() map[string]any
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 PublishCommitStatus ¶ added in v0.0.43
type PublishCommitStatus struct{}
func (*PublishCommitStatus) Actions ¶ added in v0.0.43
func (c *PublishCommitStatus) Actions() []core.Action
func (*PublishCommitStatus) Cancel ¶ added in v0.0.43
func (c *PublishCommitStatus) Cancel(ctx core.ExecutionContext) error
func (*PublishCommitStatus) Color ¶ added in v0.0.43
func (c *PublishCommitStatus) Color() string
func (*PublishCommitStatus) Configuration ¶ added in v0.0.43
func (c *PublishCommitStatus) Configuration() []configuration.Field
func (*PublishCommitStatus) Description ¶ added in v0.0.43
func (c *PublishCommitStatus) Description() string
func (*PublishCommitStatus) ExampleOutput ¶ added in v0.0.45
func (c *PublishCommitStatus) ExampleOutput() map[string]any
func (*PublishCommitStatus) Execute ¶ added in v0.0.43
func (c *PublishCommitStatus) Execute(ctx core.ExecutionContext) error
func (*PublishCommitStatus) HandleAction ¶ added in v0.0.43
func (c *PublishCommitStatus) HandleAction(ctx core.ActionContext) error
func (*PublishCommitStatus) HandleWebhook ¶ added in v0.0.43
func (c *PublishCommitStatus) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*PublishCommitStatus) Icon ¶ added in v0.0.43
func (c *PublishCommitStatus) Icon() string
func (*PublishCommitStatus) Label ¶ added in v0.0.43
func (c *PublishCommitStatus) Label() string
func (*PublishCommitStatus) Name ¶ added in v0.0.43
func (c *PublishCommitStatus) Name() string
func (*PublishCommitStatus) OutputChannels ¶ added in v0.0.43
func (c *PublishCommitStatus) OutputChannels(configuration any) []core.OutputChannel
func (*PublishCommitStatus) ProcessQueueItem ¶ added in v0.0.43
func (c *PublishCommitStatus) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*PublishCommitStatus) Setup ¶ added in v0.0.43
func (c *PublishCommitStatus) Setup(ctx core.SetupContext) error
type PublishCommitStatusConfiguration ¶ added in v0.0.43
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) ExampleOutput ¶ added in v0.0.45
func (c *RunWorkflow) ExampleOutput() map[string]any
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) ExampleOutput ¶ added in v0.0.45
func (c *UpdateIssue) ExampleOutput() map[string]any
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 UpdateRelease ¶ added in v0.0.45
type UpdateRelease struct{}
func (*UpdateRelease) Actions ¶ added in v0.0.45
func (c *UpdateRelease) Actions() []core.Action
func (*UpdateRelease) Cancel ¶ added in v0.0.45
func (c *UpdateRelease) Cancel(ctx core.ExecutionContext) error
func (*UpdateRelease) Color ¶ added in v0.0.45
func (c *UpdateRelease) Color() string
func (*UpdateRelease) Configuration ¶ added in v0.0.45
func (c *UpdateRelease) Configuration() []configuration.Field
func (*UpdateRelease) Description ¶ added in v0.0.45
func (c *UpdateRelease) Description() string
func (*UpdateRelease) ExampleOutput ¶ added in v0.0.45
func (c *UpdateRelease) ExampleOutput() map[string]any
func (*UpdateRelease) Execute ¶ added in v0.0.45
func (c *UpdateRelease) Execute(ctx core.ExecutionContext) error
func (*UpdateRelease) HandleAction ¶ added in v0.0.45
func (c *UpdateRelease) HandleAction(ctx core.ActionContext) error
func (*UpdateRelease) HandleWebhook ¶ added in v0.0.45
func (c *UpdateRelease) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*UpdateRelease) Icon ¶ added in v0.0.45
func (c *UpdateRelease) Icon() string
func (*UpdateRelease) Label ¶ added in v0.0.45
func (c *UpdateRelease) Label() string
func (*UpdateRelease) Name ¶ added in v0.0.45
func (c *UpdateRelease) Name() string
func (*UpdateRelease) OutputChannels ¶ added in v0.0.45
func (c *UpdateRelease) OutputChannels(configuration any) []core.OutputChannel
func (*UpdateRelease) ProcessQueueItem ¶ added in v0.0.45
func (c *UpdateRelease) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*UpdateRelease) Setup ¶ added in v0.0.45
func (c *UpdateRelease) Setup(ctx core.SetupContext) error
type UpdateReleaseConfiguration ¶ added in v0.0.45
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 WebhookConfiguration ¶
Source Files
¶
- client.go
- common.go
- create_issue.go
- create_release.go
- delete_release.go
- example.go
- get_issue.go
- github.go
- list_resources.go
- on_branch_created.go
- on_issue.go
- on_issue_comment.go
- on_pr_comment.go
- on_pull_request.go
- on_push.go
- on_release.go
- on_tag_created.go
- publish_commit_status.go
- run_workflow.go
- update_issue.go
- update_release.go
Click to show internal directories.
Click to hide internal directories.