jira

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevelopmentInfo

type DevelopmentInfo struct {
	Errors []interface{} `json:"errors"`
	Detail []struct {
		Branches []struct {
			Name                 string `json:"name"`
			URL                  string `json:"url"`
			CreatePullRequestURL string `json:"createPullRequestUrl"`
			Repository           struct {
				Name    string        `json:"name"`
				Avatar  string        `json:"avatar"`
				URL     string        `json:"url"`
				Commits []interface{} `json:"commits"`
			} `json:"repository"`
			LastCommit struct {
				ID              string        `json:"id"`
				DisplayID       string        `json:"displayId"`
				AuthorTimestamp string        `json:"authorTimestamp"`
				Merge           bool          `json:"merge"`
				Files           []interface{} `json:"files"`
			} `json:"lastCommit"`
		} `json:"branches"`
		PullRequests []struct {
			Author struct {
				Name   string `json:"name"`
				Avatar string `json:"avatar"`
			} `json:"author"`
			ID           string `json:"id"`
			Name         string `json:"name"`
			CommentCount int    `json:"commentCount"`
			Source       struct {
				Branch string `json:"branch"`
				URL    string `json:"url"`
			} `json:"source"`
			Destination struct {
				Branch string `json:"branch"`
				URL    string `json:"url"`
			} `json:"destination"`
			Reviewers  []interface{} `json:"reviewers"`
			Status     string        `json:"status"`
			URL        string        `json:"url"`
			LastUpdate string        `json:"lastUpdate"`
		} `json:"pullRequests"`
		Repositories []interface{} `json:"repositories"`
		Instance     struct {
			SingleInstance bool   `json:"singleInstance"`
			BaseURL        string `json:"baseUrl"`
			Name           string `json:"name"`
			TypeName       string `json:"typeName"`
			ID             string `json:"id"`
			Type           string `json:"type"`
		} `json:"_instance"`
	} `json:"detail"`
}

type Issue

type Issue struct {
	jira.Issue
	DevelopmentInfo DevelopmentInfo `json:"development_info"`
}

func (*Issue) GetDevelopmentInfo

func (i *Issue) GetDevelopmentInfo(wg *sync.WaitGroup) (err error)

type JQL

type JQL struct {
	Query string
}

func NewJQL

func NewJQL(template string) *JQL

func (*JQL) And

func (jql *JQL) And(and string) *JQL

func (*JQL) Or

func (jql *JQL) Or(or string) *JQL

func (*JQL) Parse

func (jql *JQL) Parse() string

Jump to

Keyboard shortcuts

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