jira

package
v4.3.2-rc1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: AGPL-3.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Enabled  bool
	Secret   string
	UserName string
}

type Plugin

type Plugin struct {
	plugin.Base
	// contains filtered or unexported fields
}

func (*Plugin) Initialize

func (p *Plugin) Initialize(api plugin.API)

func (*Plugin) OnConfigurationChange

func (p *Plugin) OnConfigurationChange()

type Webhook

type Webhook struct {
	WebhookEvent string
	Issue        struct {
		Self   string
		Key    string
		Fields struct {
			Assignee *struct {
				DisplayName string
				Name        string
			}
			Summary     string
			Description string
			Priority    *struct {
				Id   string
				Name string
			}
			IssueType struct {
				Name    string
				IconURL string
			}
			Resolution *struct {
				Id string
			}
			Status struct {
				Id string
			}
		}
	}
	User struct {
		Name        string
		AvatarUrls  map[string]string
		DisplayName string
	}
	Comment struct {
		Body string
	}
	ChangeLog struct {
		Items []struct {
			FromString string
			ToString   string
			Field      string
		}
	}
}

func (*Webhook) JIRAURL

func (w *Webhook) JIRAURL() string

func (*Webhook) SlackAttachment

func (w *Webhook) SlackAttachment() (*model.SlackAttachment, error)

Returns the text to be placed in the resulting post or an empty string if nothing should be posted.

Jump to

Keyboard shortcuts

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