Documentation ¶
Index ¶
- func CompareComments(config cfg.Config, ghIssue github.Issue, jIssue jira.Issue, ...) error
- func CompareIssues(config cfg.Config, ghClient issuesyncgithub.Client, ...) error
- func CreateIssue(config cfg.Config, ghIssue models.ExtendedGithubIssue, ...) error
- func DidIssueChange(config cfg.Config, ghIssue models.ExtendedGithubIssue, jIssue jira.Issue) bool
- func UpdateComment(config cfg.Config, ghComment github.IssueComment, jComment jira.Comment, ...) error
- func UpdateIssue(config cfg.Config, ghIssue models.ExtendedGithubIssue, jIssue jira.Issue, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareComments ¶
func CompareComments(config cfg.Config, ghIssue github.Issue, jIssue jira.Issue, ghClient issuesyncgithub.Client, jClient issuesyncjira.Client) error
CompareComments takes a GitHub issue, and retrieves all of its comments. It then matches each one to a comment in `existing`. If it finds a match, it calls UpdateComment; if it doesn't, it calls CreateComment.
func CompareIssues ¶
func CompareIssues(config cfg.Config, ghClient issuesyncgithub.Client, jiraClient issuesyncjira.Client) error
CompareIssues 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(config cfg.Config, ghIssue models.ExtendedGithubIssue, ghClient issuesyncgithub.Client, jClient issuesyncjira.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(config cfg.Config, ghIssue models.ExtendedGithubIssue, jIssue jira.Issue) bool
DidIssueChange tests each of the relevant fields on the provided JIRA and GitHub issue and returns whether or not they differ.
func UpdateComment ¶
func UpdateComment(config cfg.Config, ghComment github.IssueComment, jComment jira.Comment, jIssue jira.Issue, ghClient issuesyncgithub.Client, jClient issuesyncjira.Client) error
UpdateComment compares the body of a GitHub comment with the body (minus header) of the JIRA comment, and updates the JIRA comment if necessary.
func UpdateIssue ¶
func UpdateIssue(config cfg.Config, ghIssue models.ExtendedGithubIssue, jIssue jira.Issue, ghClient issuesyncgithub.Client, jClient issuesyncjira.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.