Skip to content

Commit

Permalink
Unique
Browse files Browse the repository at this point in the history
  • Loading branch information
leelasn committed Jan 6, 2025
1 parent e61d2f1 commit cd20fa8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/creates/updateIssue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,14 @@ interface IssueUpdateResponse {
}[];
}

interface IssueResponse {
data: { issue: { labelIds: string[] } };
}

const updateIssueRequest = async (z: ZObject, bundle: Bundle) => {
if (!bundle.inputData.issueIdToUpdate) {
throw new z.errors.HaltedError("You must specify the ID of the issue to update");
}
const priority = bundle.inputData.priority ? parseInt(bundle.inputData.priority) : undefined;
const estimate = bundle.inputData.estimate ? parseInt(bundle.inputData.estimate) : undefined;
const addedLabelIds: string[] | undefined =
bundle.inputData.labels && bundle.inputData.labels.length > 0 ? bundle.inputData.labels : undefined;
bundle.inputData.labels && bundle.inputData.labels.length > 0 ? uniq(bundle.inputData.labels) : undefined;

const variables = omitBy(
{
Expand Down

0 comments on commit cd20fa8

Please sign in to comment.