Skip to content

Commit

Permalink
no-task Update method call to include both tasks and stories when gen…
Browse files Browse the repository at this point in the history
…erating sprint goals.
  • Loading branch information
nxsschoenfeld committed Jul 19, 2023
1 parent 19b1a93 commit 16d0d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AiJira/SprintGoals/SprintGoals.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function generateSprintGoals(string $sprintName, ?string $overwritePrompt
$labels = $this->jiraFormatter->extractLabels($tasks);

if ($overwritePrompt) {
return $this->openaiClient->getGeneratedSprintGoals($stories, [], $overwritePrompt);
return $this->openaiClient->getGeneratedSprintGoals([$tasks, $stories], [], $overwritePrompt);
} else {
return $this->openaiClient->getGeneratedSprintGoals($tasks, $labels, null) . "\n\nOverall:\n" . $this->openaiClient->getGeneratedSprintGoals($stories, [], null);
}
Expand Down

0 comments on commit 16d0d9b

Please sign in to comment.