Skip to content

Commit

Permalink
no-task Refactor if statement in SprintGoals.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
nxsschoenfeld committed Jul 19, 2023
1 parent cccf685 commit 19b1a93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AiJira/SprintGoals/SprintGoals.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function generateSprintGoals(string $sprintName, ?string $overwritePrompt
[$tasks, $stories] = $this->mapper->splitTicketsByType($ticketData);
$labels = $this->jiraFormatter->extractLabels($tasks);

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

0 comments on commit 19b1a93

Please sign in to comment.