jira_helper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileJiraIssuesForFailedTests

func FileJiraIssuesForFailedTests(ctx context.Context, report *ginkgoTypes.Report, runID int64,
	info *JiraInfo) error

FileJiraIssuesForFailedTests files an issue, if needed, for a failed test. If filed, an issue is added to active sprint. Before filing a new issue, this method search if one already exists. If so, it simply adds a comment with run id. - report is the list of tests - runID is current run id

func FindExistingIssue

func FindExistingIssue(openIssues []jira.Issue, testReport *ginkgoTypes.SpecReport) *jira.Issue

FindExistingIssue finds if an already existing issue exists.

func GetOpenE2EJiraIssue

func GetOpenE2EJiraIssue(ctx context.Context, info *JiraInfo) ([]jira.Issue, error)

GetOpenE2EJiraIssue returns issues filed by user (in jiraInfo)

func VerifyInfo

func VerifyInfo(ctx context.Context, info *JiraInfo) error

VerifyInfo verifies provided jira info are correct

Types

type JiraInfo

type JiraInfo struct {
	BaseURL   string // jira base URL
	Project   string // jira Project name
	Board     string // jira Board Name
	Component string // if not empty, any jira filed issue will have this as component
	Username  string // jira username
	Password  string // jira password
	DryRun    bool   // indicates if this is a dryRun
}

Jump to

Keyboard shortcuts

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