From 8eacb79590d7f6b4610c47d1b9845adf58c0d7a2 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Tue, 17 Dec 2024 12:45:15 +0100 Subject: [PATCH] Fix bad SAML check (#6557) --- src/github/githubRepository.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/github/githubRepository.ts b/src/github/githubRepository.ts index 8933bf3e8b..674dbbe82d 100644 --- a/src/github/githubRepository.ts +++ b/src/github/githubRepository.ts @@ -1491,9 +1491,10 @@ export class GitHubRepository extends Disposable { name: remote.repositoryName, number: number, }, - }, true); // There's an issue with the GetChecks that can result in SAML errors. + }); } catch (e) { - if (isSamlError(e.message)) { + // There's an issue with the GetChecks that can result in SAML errors. + if (isSamlError(e)) { // There seems to be an issue with fetching status checks if you haven't SAML'd with every org you have // The issue is specifically with the CheckSuite property. Make the query again, but without that property. if (!captureUseFallbackChecks) {