Documentation
¶
Index ¶
- func Compare(cfg *config.Config, ghClient github.Client, jiraClient jira.Client) error
- func CreateIssue(cfg *config.Config, issue *gogh.Issue, ghClient github.Client, ...) error
- func DidIssueChange(cfg *config.Config, ghIssue *gogh.Issue, jIssue *gojira.Issue) bool
- func GetMissingComponents(cfg *config.Config, jIssue *gojira.Issue) []*gojira.Component
- func UpdateIssue(cfg *config.Config, ghIssue *gogh.Issue, jIssue *gojira.Issue, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
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 ¶
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
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.