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) {