We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2763801 commit 154d34cCopy full SHA for 154d34c
src/github/GithubInstance.ts
@@ -150,7 +150,15 @@ export class GithubInstance {
150
do {
151
const installations = await this.internalOctokit.apps.listInstallations({ per_page: 100, page: page++ });
152
for (const install of installations.data) {
153
- await this.addInstallation(install);
+ 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
162
}
163
installPageSize = installations.data.length;
164
} while(installPageSize === 100)
0 commit comments