// IssueID determines the "issue" associated with a pull request
IssueID determines the "issue" associated with a pull request
// IssueID determines the " issue " associated with a pull request
func IssueID(pr GithubPullRequest) (issueID string, ok bool) {
	if len(string(pr.BodyText)) == 0 {
		return
	}
	re := regexp.MustCompile(fmt.Sprintf("%s-\\d*", config.GetString(config.JiraProjectName)))
	issueID = re.FindString(string(pr.BodyText))
	ok = issueID != ""
	return
}
func IssueID ( pr GithubPullRequest ) ( issueID string , ok bool ) { if len ( string ( pr . BodyText ) ) == 0 { return } re := regexp . MustCompile ( fmt . Sprintf ( " \\ " , config . GetString ( config . JiraProjectName ) ) ) issueID = re . FindString ( string ( pr . BodyText ) ) ok = issueID != " " return }
IssueID determines the "issue" associated with a pull request
IssueID determines the " issue " associated with a pull request
// TODO: Decouple IssueId from Jira settings