Skip to content

Commit

Permalink
fix missing summary in html (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Janiszewski <[email protected]>
  • Loading branch information
janisz authored Apr 3, 2024
1 parent 03b0e38 commit 32bb9ea
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,18 @@ func (j junit2jira) createIssueOrComment(tc testCase) (*testIssue, error) {
logEntry(NA, summary).Debugf("Dry run: will just print issue\n %q", description)
return nil, nil
}
create, response, err := j.jiraClient.Issue.Create(newIssue(j.jiraProject, summary, description))
issue = newIssue(j.jiraProject, summary, description)
create, response, err := j.jiraClient.Issue.Create(issue)
if response != nil && err != nil {
logError(err, response)
return nil, fmt.Errorf("could not create issue %s: %w", summary, err)
}
logEntry(create.Key, summary).Info("Created new issue")
issueWithTestCase.issue = create
// Response from API does not contain full object so we need to copy missing data
issue.Key = create.Key
issue.ID = create.ID
issue.Self = create.Self
logEntry(issue.Key, summary).Info("Created new issue")
issueWithTestCase.issue = issue
issueWithTestCase.newJIRA = true
return &issueWithTestCase, nil
}
Expand Down

0 comments on commit 32bb9ea

Please sign in to comment.