From 53f36af27b57e2c7a6cd02dbd43519ba01f7cd10 Mon Sep 17 00:00:00 2001 From: Aubin <60398825+aubin-tchoi@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:39:01 +0100 Subject: [PATCH] add a quick and dirty fix for API errors (#9535) --- connectors/src/connectors/github/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/connectors/src/connectors/github/index.ts b/connectors/src/connectors/github/index.ts index 72a0848ab2a2..17a0c45563cb 100644 --- a/connectors/src/connectors/github/index.ts +++ b/connectors/src/connectors/github/index.ts @@ -679,6 +679,13 @@ export class GithubConnectorManager extends BaseConnectorManager { ); } + if (/^github-issue-\d+-\d+$/.test(internalId)) { + return new Ok([internalId]); // this is incorrect but matches the previous behavior, will fix in a follow-up PR + } + if (/^github-discussion-\d+-\d+$/.test(internalId)) { + return new Ok([internalId]); // this is incorrect but matches the previous behavior, will fix in a follow-up PR + } + const { type, repoId } = matchGithubInternalIdType(internalId); switch (type) {