Skip to content

Commit

Permalink
add a quick and dirty fix for API errors (#9535)
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi authored Dec 19, 2024
1 parent 880dabd commit 53f36af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions connectors/src/connectors/github/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,13 @@ export class GithubConnectorManager extends BaseConnectorManager<null> {
);
}

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

0 comments on commit 53f36af

Please sign in to comment.