Skip to content

Commit 154d34c

Browse files
committed
Merge commit from fork
1 parent 2763801 commit 154d34c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/github/GithubInstance.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,15 @@ export class GithubInstance {
150150
do {
151151
const installations = await this.internalOctokit.apps.listInstallations({ per_page: 100, page: page++ });
152152
for (const install of installations.data) {
153-
await this.addInstallation(install);
153+
if (install.suspended_at) {
154+
log.warn(`GitHub app install ${install.id} was suspended. GitHub connections using this install may not work correctly`);
155+
continue;
156+
}
157+
try {
158+
await this.addInstallation(install);
159+
} catch (ex) {
160+
log.info(`Failed to handle GitHub installation ${install.id}`, ex);
161+
}
154162
}
155163
installPageSize = installations.data.length;
156164
} while(installPageSize === 100)

0 commit comments

Comments
 (0)