model

package
v0.1.1-0...-8c77e1a Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Campaign

type Campaign struct {
	Jira           ConfigJira   `json:"jira"`
	Github         ConfigGithub `json:"github"`
	Summary        string       `json:"summary"`
	IssueTemplate  string       `json:"issue_template"`
	FooterTemplate string       `json:"footer_template"`
	Tickets        []*Ticket    `json:"tickets,omitempty"`
}

ToDo: add key-value extra params as a map to allow for customfield_whatever = team

func (*Campaign) AddTickets

func (c *Campaign) AddTickets(tickets []*Ticket, fileOnly bool) int

func (*Campaign) FillTicket

func (c *Campaign) FillTicket(t *Ticket) error

func (*Campaign) GetGithubUrl

func (c *Campaign) GetGithubUrl(ticket *Ticket) string

func (*Campaign) GetJiraUrl

func (c *Campaign) GetJiraUrl(ticket *Ticket) string

func (*Campaign) GetPublishedGithubTickets

func (c *Campaign) GetPublishedGithubTickets() []*Ticket

func (*Campaign) NextGithubUnpublishedTicket

func (c *Campaign) NextGithubUnpublishedTicket() *Ticket

func (*Campaign) NextJiraUnpublishedTicket

func (c *Campaign) NextJiraUnpublishedTicket() *Ticket

func (*Campaign) PrintList

func (c *Campaign) PrintList(publishedOnly, printLinks bool)

func (*Campaign) PrintStatus

func (c *Campaign) PrintStatus()

func (*Campaign) PrintUserReport

func (c *Campaign) PrintUserReport()

func (*Campaign) RemoveDuplicateTickets

func (c *Campaign) RemoveDuplicateTickets(fileOnly bool) int

func (*Campaign) RepoComponents

func (c *Campaign) RepoComponents() (string, string)

type ConfigGithub

type ConfigGithub struct {
	Token  string   `json:"token"`
	Repo   string   `json:"repo"`
	Labels []string `json:"labels"`
}

type ConfigJira

type ConfigJira struct {
	Url       string `json:"url"`
	Username  string `json:"username"`
	Token     string `json:"token"`
	Project   string `json:"project"`
	Epic      string `json:"epic"`
	IssueType string `json:"issue_type"`
}

type Ticket

type Ticket struct {
	GithubLink     int                    `json:"github_link,omitempty"`
	GithubStatus   string                 `json:"github_status,omitempty"`
	GithubAssignee string                 `json:"github_assignee,omitempty"`
	JiraLink       string                 `json:"jira_link,omitempty"`
	JiraStatus     string                 `json:"jira_status,omitempty"`
	Summary        string                 `json:"summary,omitempty"`
	Description    string                 `json:"description,omitempty"`
	Data           map[string]interface{} `json:"data,omitempty"`
}

func (*Ticket) IsAssigned

func (t *Ticket) IsAssigned() bool

func (*Ticket) IsClosed

func (t *Ticket) IsClosed() bool

func (*Ticket) IsPublishedGithub

func (t *Ticket) IsPublishedGithub() bool

func (*Ticket) IsPublishedJira

func (t *Ticket) IsPublishedJira() bool

func (*Ticket) PrintStatus

func (t *Ticket) PrintStatus()

Jump to

Keyboard shortcuts

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