jira

package
v0.0.0-...-31a8ea0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

A Jira web-hook sending messages when new commits arrive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JiraChangelog

type JiraChangelog struct {
	Id    int `json:",string"`
	Items []JiraChangelogItem
}

type JiraChangelogItem

type JiraChangelogItem struct {
	ToString   string
	To         string
	FromString string
	From       string
	Fieldtype  string
	Field      string
}

type JiraComment

type JiraComment struct {
	Self         string
	Id           int `json:",string"`
	Author       JiraUser
	Body         string
	UpdateAuthor JiraUser
}

type JiraHook

type JiraHook struct {
	// contains filtered or unexported fields
}

func (*JiraHook) Name

func (hook *JiraHook) Name() string

func (*JiraHook) Path

func (hook *JiraHook) Path() string

func (*JiraHook) Request

func (hook *JiraHook) Request(ctx *web.Context)

func (*JiraHook) SetMessageChan

func (hook *JiraHook) SetMessageChan(channel chan msgsystem.Message)

type JiraIssue

type JiraIssue struct {
	Id     int `json:",string"`
	Self   string
	Key    string
	Fields JiraIssueFields
}

type JiraIssueFields

type JiraIssueFields struct {
	Summary     string
	Description string
	Labels      []string
	Priority    JiraPriority
}

type JiraPriority

type JiraPriority struct {
	Id   int `json:",string"`
	Self string
	Name string
}

type JiraUser

type JiraUser struct {
	Self         string
	Name         string
	EmailAddress string
	DisplayName  string
	Active       bool
}

type JiraWebhook

type JiraWebhook struct {
	Id           int `json:",string"`
	Issue        JiraIssue
	User         JiraUser
	Changelog    *JiraChangelog
	Comment      *JiraComment
	WebhookEvent string
}

Jump to

Keyboard shortcuts

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