Skip to content

Commit

Permalink
Merge commit from fork
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot authored Jan 23, 2025
1 parent a12ea4a commit e51d821
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/github/GithubInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,15 @@ export class GithubInstance {
do {
const installations = await this.internalOctokit.apps.listInstallations({ per_page: 100, page: page++ });
for (const install of installations.data) {
await this.addInstallation(install);
if (install.suspended_at) {
log.warn(`GitHub app install ${install.id} was suspended. GitHub connections using this install may not work correctly`);
continue;
}
try {
await this.addInstallation(install);
} catch (ex) {
log.info(`Failed to handle GitHub installation ${install.id}`, ex);
}
}
installPageSize = installations.data.length;
} while(installPageSize === 100)
Expand Down

0 comments on commit e51d821

Please sign in to comment.