Add update jira issue with github link

This commit is contained in:
Miguel de la Cruz 2020-04-29 22:54:49 +02:00
parent 1ccd21f59c
commit 7829bbca13
4 changed files with 44 additions and 10 deletions

View file

@ -127,3 +127,11 @@ func (c *Campaign) RepoComponents() (string, string) {
}
return "", ""
}
func (c *Campaign) GetJiraUrl(ticket *Ticket) string {
return fmt.Sprintf("%s/browse/%s", c.Jira.Url, ticket.JiraLink)
}
func (c *Campaign) GetGithubUrl(ticket *Ticket) string {
return fmt.Sprintf("https://github.com/%s/issues/%d", c.Github.Repo, ticket.GithubLink)
}