Skip to content

Commit

Permalink
no-task Added a new CLI command ticket:sprintgoals to generate sprint…
Browse files Browse the repository at this point in the history
… goals using a list of JIRA tickets.
  • Loading branch information
nxsschoenfeld committed Jul 21, 2023
1 parent 44d671e commit 7d2f72c
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 9 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ The following env parameters need to be configured, depending on the CLI command
### Use OpenAI to generate your sprint goals for a planned or existing sprint.
```bash
> aijira sprint:goals "<SPRINT-NAME>"
> aijira ticket:sprintgoals "<Ticket1>,<Ticket2>,<Ticket3>"
```

![2023-06-21_1.png](assets/2023-06-21_1.png)
![2023-06-21_5.png](assets%2F2023-06-21_5.png)

### Use OpenAI to generate a sprint review agenda.
```bash
Expand Down
20 changes: 20 additions & 0 deletions aijira
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,26 @@ $application->add(new class('sprint:goals') extends Command {
}
});

$application->add(new class('ticket:sprintgoals') extends Command {
public function __construct(string $name = null)
{
parent::__construct($name);
$this->setDescription('Use OpenAI to generate your sprint goals for a planned or existing sprint using a list of tickets.');
$this->addArgument('list-of-tickets', InputArgument::REQUIRED, 'List of JIRA Tickets');
$this->addArgument('overwrite-prompt', InputArgument::OPTIONAL, 'Overwrite Prompt');
}

protected function execute(InputInterface $input, OutputInterface $output): int
{
$command = ['aiticketsprintgoals', $input->getArgument('list-of-tickets'), $input->getArgument('overwrite-prompt')];
$process = new Process($command);
$process->setTty(true);
$process->run();

$output->write($process->getOutput());
return Command::SUCCESS;
}
});

$application->add(new class('sprint:release-notes') extends Command {
public function __construct(string $name = null)
Expand Down
2 changes: 1 addition & 1 deletion aireleasenotes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
Expand Down
2 changes: 1 addition & 1 deletion aisprintgoals
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
Expand Down
2 changes: 1 addition & 1 deletion aisprintreview
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
Expand Down
2 changes: 1 addition & 1 deletion aiticketestimate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
Expand Down
2 changes: 1 addition & 1 deletion aiticketinterview
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
Expand Down
2 changes: 1 addition & 1 deletion aiticketscorer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
Expand Down
2 changes: 1 addition & 1 deletion aiticketsprintgoals
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
Expand Down
2 changes: 1 addition & 1 deletion aitickettestcases
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
Expand Down
2 changes: 1 addition & 1 deletion aiticketvalidator
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
Expand Down
Binary file added assets/2023-06-21_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/2023-06-22_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7d2f72c

Please sign in to comment.