-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no-task Add functionality to generate sprint goals based on a list of…
… tickets.
- Loading branch information
1 parent
16d0d9b
commit 44d671e
Showing
4 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/php | ||
<?php | ||
|
||
if (file_exists(__DIR__ . '/vendor/autoload.php')) { | ||
require __DIR__ . '/vendor/autoload.php'; | ||
} else { | ||
require_once(__DIR__ . '/../../autoload.php'); | ||
} | ||
|
||
$listOfTickets = $_SERVER['argv'][1] ?? null; | ||
if ($listOfTickets === null) { | ||
echo "Please enter a valid list of tickets. \nExample:\n> aiticketsprintgoals \"SPRY-1234,SPRY-1000,SPRY-2000\""; | ||
exit(0); | ||
} | ||
|
||
$overwritePrompt = $_SERVER['argv'][2] ?? null; | ||
|
||
$sprintGoals = new \AiJira\SprintGoals\SprintGoals(); | ||
echo $sprintGoals->generateSprintGoalsByTicket($listOfTickets, $overwritePrompt); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters