Documentation
¶
Index ¶
- Constants
- func EnsureRepoInMetadata(ctx core.MetadataWriter, app core.IntegrationContext, configuration any) error
- func ExtractAction(data map[string]any) (string, bool)
- func FindSecret(ctx core.IntegrationContext, secretName string) (string, error)
- func NewClient(ctx core.IntegrationContext, ghAppID int64, installationID string) (*github.Client, error)
- func SanitizeAssignees(assignees []string) []string
- func VerifySignature(ctx core.WebhookRequestContext) (int, error)
- func WhitelistedAction(data map[string]any, allowed []string) bool
- func WithWebhookLogger(ctx core.WebhookRequestContext, triggerName string) core.WebhookRequestContext
- type GitHubAppMetadata
- type Metadata
- type NodeMetadata
- type Repository
- type WebhookConfiguration
Constants ¶
View Source
const ( GitHubAppPEM = "pem" GitHubAppClientSecret = "clientSecret" GitHubAppWebhookSecret = "webhookSecret" )
Variables ¶
This section is empty.
Functions ¶
func EnsureRepoInMetadata ¶
func EnsureRepoInMetadata(ctx core.MetadataWriter, app core.IntegrationContext, configuration any) error
func FindSecret ¶
func FindSecret(ctx core.IntegrationContext, secretName string) (string, error)
func SanitizeAssignees ¶
func VerifySignature ¶
func VerifySignature(ctx core.WebhookRequestContext) (int, error)
func WithWebhookLogger ¶
func WithWebhookLogger(ctx core.WebhookRequestContext, triggerName string) core.WebhookRequestContext
Types ¶
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 ¶
type NodeMetadata struct {
Repository *Repository `json:"repository"`
}
type Repository ¶
type WebhookConfiguration ¶
Click to show internal directories.
Click to hide internal directories.