jira

package
v4.2.0-rc2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: AGPL-3.0, Apache-2.0 Imports: 11 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) 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