Skip to content

Commit 95b6eba

Browse files
authored
deps: update gcf-utils to 16.2.1 (#5599)
For the remaining Cloud Run based bots, update gcf-utils to 16.2.1 which allows for configuring the background task runner via env variables.
1 parent 00f98f8 commit 95b6eba

File tree

13 files changed

+34
-49
lines changed

13 files changed

+34
-49
lines changed

packages/owl-bot/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/owl-bot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"follow-redirects": "^1.15.2",
8282
"fs-extra": "^11.0.0",
8383
"gaxios": "^5.0.1",
84-
"gcf-utils": "^16.0.1",
84+
"gcf-utils": "^16.2.1",
8585
"glob": "^8.0.3",
8686
"js-yaml": "^4.1.0",
8787
"jsonwebtoken": "^9.0.0",

packages/owl-bot/src/server-backend.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ import {GCFBootstrapper} from 'gcf-utils';
2020

2121
import {owlbot} from './owl-bot';
2222

23-
const bootstrap = new GCFBootstrapper({
24-
taskTargetEnvironment: 'run',
25-
taskTargetName: 'owl-bot-backend',
26-
});
23+
const bootstrap = new GCFBootstrapper();
2724

2825
// Initialize firestore app here to avoid race condition.
2926
admin.initializeApp({

packages/owl-bot/src/server-frontend.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
import {Probot} from 'probot';
1717
import {GCFBootstrapper} from 'gcf-utils';
1818

19-
const bootstrap = new GCFBootstrapper({
20-
taskTargetEnvironment: 'run',
21-
taskTargetName: 'owl-bot-backend',
22-
});
19+
const bootstrap = new GCFBootstrapper();
2320

2421
// We only need to deploy gcf-utils in the frontend server because only thing
2522
// it does is to enqueue a task for the OwlBot backend. Thus we deploy a dummy

packages/release-please/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/release-please/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@google-automations/label-utils": "^5.0.0",
3535
"@octokit/rest": "^19.0.4",
3636
"@octokit/webhooks": "^10.1.5",
37-
"gcf-utils": "^16.1.0",
37+
"gcf-utils": "^16.2.1",
3838
"jsonwebtoken": "^9.0.0",
3939
"release-please": "^16.14.4"
4040
},

packages/release-please/src/server.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
import {GCFBootstrapper} from 'gcf-utils';
1616
import {api} from './release-please';
1717

18-
const bootstrap = new GCFBootstrapper({
19-
taskTargetEnvironment: 'run',
20-
taskTargetName: 'release-please-backend',
21-
});
18+
const bootstrap = new GCFBootstrapper();
2219
const server = bootstrap.server(api.handler, {throttleOnRateLimits: false});
2320
const port = process.env.PORT ?? 8080;
2421

packages/release-trigger/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/release-trigger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@google-automations/bot-config-utils": "^8.0.0",
3232
"@google-automations/datastore-lock": "^6.0.0",
3333
"@google-automations/issue-utils": "^4.0.0",
34-
"gcf-utils": "^16.0.1",
34+
"gcf-utils": "^16.2.1",
3535
"jsonwebtoken": "^9.0.0"
3636
},
3737
"devDependencies": {

packages/release-trigger/src/server-frontend.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
import {Probot} from 'probot';
1717
import {GCFBootstrapper} from 'gcf-utils';
1818

19-
const bootstrap = new GCFBootstrapper({
20-
taskTargetEnvironment: 'run',
21-
taskTargetName: 'release-trigger-backend',
22-
});
19+
const bootstrap = new GCFBootstrapper();
2320

2421
// We only need to deploy gcf-utils in the frontend server because only thing
2522
// it does is to enqueue a task for the backend. Thus we deploy a dummy

0 commit comments

Comments
 (0)