From 16d0d9bd6a4b1026f1266b10d4f669d1b6168bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Sch=C3=B6nfeld?= Date: Wed, 19 Jul 2023 14:46:31 +0200 Subject: [PATCH] no-task Update method call to include both tasks and stories when generating sprint goals. --- src/AiJira/SprintGoals/SprintGoals.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AiJira/SprintGoals/SprintGoals.php b/src/AiJira/SprintGoals/SprintGoals.php index 9951a88..3f34e24 100644 --- a/src/AiJira/SprintGoals/SprintGoals.php +++ b/src/AiJira/SprintGoals/SprintGoals.php @@ -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); }