webhook

package
v0.0.0-...-3ba3d46 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHook

func RegisterHook(jrealm *jira.Realm, projects []string, userID id.UserID, webhookEndpointURL string) error

RegisterHook checks to see if this user is allowed to track the given projects and then tracks them.

Types

type Event

type Event struct {
	WebhookEvent string       `json:"webhookEvent"`
	Timestamp    int64        `json:"timestamp"`
	User         gojira.User  `json:"user"`
	Issue        gojira.Issue `json:"issue"`
}

Event represents an incoming JIRA webhook event

func OnReceiveRequest

func OnReceiveRequest(req *http.Request) (string, *Event, *util.JSONResponse)

OnReceiveRequest is called when JIRA hits NEB with an update. Returns the project key and webhook event, or an error.

Jump to

Keyboard shortcuts

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