Skip to content

Commit 7c31f1d

Browse files
authored
Fall back to getting checks without suite for enterprise (#8442)
Fixes #8378
1 parent 38aab60 commit 7c31f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github/githubRepository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ export class GitHubRepository extends Disposable {
16681668
});
16691669
} catch (e) {
16701670
// There's an issue with the GetChecks that can result in SAML errors.
1671-
if (isSamlError(e)) {
1671+
if (isSamlError(e) || this.remote.isEnterprise) {
16721672
// There seems to be an issue with fetching status checks if you haven't SAML'd with every org you have
16731673
// The issue is specifically with the CheckSuite property. Make the query again, but without that property.
16741674
if (!captureUseFallbackChecks) {

0 commit comments

Comments
 (0)