Skip to content

Commit

Permalink
fix: don't set priority when it is already set
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Oct 3, 2024
1 parent ffc02ab commit 809fa4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,10 @@ const cli = async () => {

// NOTE: undefined priority is value "Undefined" so we need to check for it
const parsedPriority = prioritySchema.safeParse(
issue.fields[jira.fields.priority]
issue.fields[jira.fields.priority].name
);
let priority = parsedPriority.success ? parsedPriority.data : undefined;

if (!priority) {
const answer: PriorityWithControls = await select({
message: 'Priority',
Expand Down

0 comments on commit 809fa4d

Please sign in to comment.