jira

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedEvents = &webhook.Events{
	Supported: map[string]webhook.Event{
		issueCreated: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(issueEventIDPath),
		},
		issueUpdated: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(issueEventIDPath),
		},
		issueDeleted: {
			Operation:  entities.Delete,
			GetFieldID: webhook.GetPrimaryKeyByPath(issueEventIDPath),
		},
		issueLinkCreated: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(issueLinkEventIDPath),
		},
		issueLinkDeleted: {
			Operation:  entities.Delete,
			GetFieldID: webhook.GetPrimaryKeyByPath(issueLinkEventIDPath),
		},
		projectCreated: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(projectEventIDPath),
		},
		projectUpdated: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(projectEventIDPath),
		},
		projectDeleted: {
			Operation:  entities.Delete,
			GetFieldID: webhook.GetPrimaryKeyByPath(projectEventIDPath),
		},
		projectSoftDeleted: {
			Operation:  entities.Delete,
			GetFieldID: webhook.GetPrimaryKeyByPath(projectEventIDPath),
		},
		projectRestoredDeleted: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(projectEventIDPath),
		},
		versionReleased: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(versionEventIDPath),
		},
		versionUnreleased: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(versionEventIDPath),
		},
		versionCreated: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(versionEventIDPath),
		},
		versionUpdated: {
			Operation:  entities.Write,
			GetFieldID: webhook.GetPrimaryKeyByPath(versionEventIDPath),
		},
		versionDeleted: {
			Operation:  entities.Delete,
			GetFieldID: webhook.GetPrimaryKeyByPath(versionEventIDPath),
		},
	},
	GetEventType: webhook.GetEventTypeByPath(webhookEventPath),
}

Functions

func AddSourceToRouter added in v0.2.0

func AddSourceToRouter(
	ctx context.Context,
	cfg config.GenericConfig,
	pg pipeline.IPipelineGroup,
	router *swagger.Router[fiber.Handler, fiber.Router],
) error

Types

type Config

type Config struct {
	webhook.Configuration[hmac.Authentication]
}

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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