Skip to content

Commit 8eacb79

Browse files
authored
Fix bad SAML check (#6557)
1 parent 732e03b commit 8eacb79

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/github/githubRepository.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,9 +1491,10 @@ export class GitHubRepository extends Disposable {
14911491
name: remote.repositoryName,
14921492
number: number,
14931493
},
1494-
}, true); // There's an issue with the GetChecks that can result in SAML errors.
1494+
});
14951495
} catch (e) {
1496-
if (isSamlError(e.message)) {
1496+
// There's an issue with the GetChecks that can result in SAML errors.
1497+
if (isSamlError(e)) {
14971498
// There seems to be an issue with fetching status checks if you haven't SAML'd with every org you have
14981499
// The issue is specifically with the CheckSuite property. Make the query again, but without that property.
14991500
if (!captureUseFallbackChecks) {

0 commit comments

Comments
 (0)