jira

package
v4.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: AGPL-3.0, Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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