Skip to content

Commit

Permalink
fix: don't set severity for Story issue type
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Nov 15, 2024
1 parent 026316f commit f6cbade
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ const runProgram = async () => {
let severity = parsedSeverity.success ? parsedSeverity.data : undefined;
const setSeverity = !severity;

if (!severity) {
// This is workaround, We should use api to determine what values are available on the issue
if (!severity && issue.fields.issuetype.name !== 'Story') {
const answer: SeverityWithControls = await select({
message: 'Severity',
choices: [
Expand Down

0 comments on commit f6cbade

Please sign in to comment.