Skip to content

Commit 4b0de5d

Browse files
missed one
1 parent b772931 commit 4b0de5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (j junit2jira) createIssueOrComment(tc testCase) (*testIssue, error) {
290290
logEntry(NA, summary).Debugf("Dry run: will just print issue\n %q", description)
291291
return nil, nil
292292
}
293-
create, response, err := j.jiraClient.Issue.Create(newIssue(summary, description))
293+
create, response, err := j.jiraClient.Issue.Create(newIssue(j.jiraProject, summary, description))
294294
if response != nil && err != nil {
295295
logError(err, response)
296296
return nil, fmt.Errorf("could not create issue %s: %w", summary, err)
@@ -325,14 +325,14 @@ func logEntry(id, summary string) *log.Entry {
325325
return log.WithField("ID", id).WithField("summary", summary)
326326
}
327327

328-
func newIssue(summary string, description string) *jira.Issue {
328+
func newIssue(project string, summary string, description string) *jira.Issue {
329329
return &jira.Issue{
330330
Fields: &jira.IssueFields{
331331
Type: jira.IssueType{
332332
Name: "Bug",
333333
},
334334
Project: jira.Project{
335-
Key: "ROX",
335+
Key: project,
336336
},
337337
Summary: summary,
338338
Description: description,

0 commit comments

Comments
 (0)