app

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const GithubIssueJiraField = "customfield_11106"

Variables

This section is empty.

Functions

func SaveCampaign

func SaveCampaign(campaign *model.Campaign, path string) error

Types

type App

type App struct {
	Path string

	JiraClient   *jira.Client
	GithubClient *github.Client
	Campaign     *model.Campaign
}

func NewApp

func NewApp(path string) (*App, error)

func (*App) CheckLabels

func (a *App) CheckLabels(labels []string) (bool, []string, error)

func (*App) GetIssue

func (a *App) GetIssue(issueNo string) (*jira.Issue, error)

func (*App) GetJiraIssueFromTicket

func (a *App) GetJiraIssueFromTicket(ticket *model.Ticket) (*jira.Issue, error)

func (*App) GetTicketsFromJiraEpic

func (a *App) GetTicketsFromJiraEpic() ([]*model.Ticket, error)

func (*App) GithubSync

func (a *App) GithubSync() error

func (*App) InitClients

func (a *App) InitClients() error

func (*App) InitGithubClient

func (a *App) InitGithubClient() error

func (*App) InitJiraClient

func (a *App) InitJiraClient() error

func (*App) ListLabels

func (a *App) ListLabels() ([]string, error)

func (*App) Load

func (a *App) Load() error

func (*App) PublishAllInGithub

func (a *App) PublishAllInGithub(w io.Writer, dryRun bool) (int, error)

func (*App) PublishAllInJira

func (a *App) PublishAllInJira(w io.Writer, dryRun bool) (int, error)

func (*App) PublishBatchInGithub

func (a *App) PublishBatchInGithub(w io.Writer, batch int, dryRun bool) error

func (*App) PublishBatchInJira

func (a *App) PublishBatchInJira(w io.Writer, batch int, dryRun bool) error

func (*App) PublishInGithub

func (a *App) PublishInGithub(ticket *model.Ticket, dryRun bool) (*github.Issue, error)

func (*App) PublishInJira

func (a *App) PublishInJira(ticket *model.Ticket, dryRun bool) (*jira.Issue, error)

func (*App) PublishNextInGithub

func (a *App) PublishNextInGithub(w io.Writer, dryRun bool) (bool, error)

func (*App) PublishNextInJira

func (a *App) PublishNextInJira(w io.Writer, dryRun bool) (bool, error)

func (*App) Save

func (a *App) Save() error

func (*App) UpdateJiraAfterGithub

func (a *App) UpdateJiraAfterGithub(ticket *model.Ticket) error

Jump to

Keyboard shortcuts

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