issue

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(cfg *config.Config, ghClient github.Client, jiraClient jira.Client) error

Compare gets the list of GitHub issues updated since the `since` date, gets the list of Jira issues which have GitHub ID custom fields in that list, then matches each one. If a Jira issue already exists for a given GitHub issue, it calls UpdateIssue; if no Jira issue already exists, it calls CreateIssue.

func CreateIssue

func CreateIssue(cfg *config.Config, issue *gogh.Issue, ghClient github.Client, jClient jira.Client) error

CreateIssue generates a Jira issue from the various fields on the given GitHub issue, then sends it to the Jira API.

func DidIssueChange

func DidIssueChange(cfg *config.Config, ghIssue *gogh.Issue, jIssue *gojira.Issue) bool

DidIssueChange tests each of the relevant fields on the provided Jira and GitHub issue and returns whether or not they differ.

func GetMissingComponents added in v0.0.8

func GetMissingComponents(cfg *config.Config, jIssue *gojira.Issue) []*gojira.Component

GetMissingComponents compares configurated components with the Jira issue components. Returns the components that are missing from the Jira issue.

func UpdateIssue

func UpdateIssue(
	cfg *config.Config,
	ghIssue *gogh.Issue,
	jIssue *gojira.Issue,
	ghClient github.Client,
	jClient jira.Client,
) error

UpdateIssue compares each field of a GitHub issue to a Jira issue; if any of them differ, the differing fields of the Jira issue are updated to match the GitHub issue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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