webhook

package
Version: v0.0.0-...-67a82fc Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL