Skip to content

Commit

Permalink
Fix skip GitHub issue (#8068)
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd authored Oct 22, 2024
1 parent c25526c commit 0c9835d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions connectors/src/connectors/github/lib/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,12 @@ export const github = async ({
);
}

await GithubIssue.update(
{ skipReason: args.skipReason },
{
where: {
repoId: args.repoId.toString(),
issueNumber: args.issueNumber,
connectorId: connector.id,
},
}
);
await GithubIssue.upsert({
repoId: args.repoId.toString(),
issueNumber: parseInt(args.issueNumber, 10),
connectorId: connector.id,
skipReason: args.skipReason,
});

return { success: true };
}
Expand Down

0 comments on commit 0c9835d

Please sign in to comment.