This is an automated email from the ASF dual-hosted git repository.
vterentev pushed a commit to branch fix-octokit
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/fix-octokit by this push:
new 2a04608fcf0 Add node-fetch dependency
2a04608fcf0 is described below
commit 2a04608fcf0d9bc745223caebaceb4fbc5c65fcf
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Wed Jul 9 11:16:34 2025 +0400
Add node-fetch dependency
---
scripts/ci/issue-report/generateReport.js | 7 ++++++-
scripts/ci/issue-report/package.json | 3 ++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/scripts/ci/issue-report/generateReport.js
b/scripts/ci/issue-report/generateReport.js
index 03bd8f798e5..87a0da6bb21 100644
--- a/scripts/ci/issue-report/generateReport.js
+++ b/scripts/ci/issue-report/generateReport.js
@@ -18,6 +18,7 @@
import { Octokit } from "@octokit/rest";
import nodemailer from 'nodemailer';
+import fetch from 'node-fetch';
const ONE_HOUR = 60 * 60 * 1000;
@@ -58,7 +59,11 @@ function getDateAge(updated_at) {
}
async function generateReport() {
- const octokit = new Octokit();
+ const octokit = new Octokit({
+ request: {
+ fetch,
+ },
+ });
let shouldSend = false;
let report = `This is your summary of Beam's current high priority issues
that may need attention.
diff --git a/scripts/ci/issue-report/package.json
b/scripts/ci/issue-report/package.json
index c667dcd4b34..98f3e659971 100644
--- a/scripts/ci/issue-report/package.json
+++ b/scripts/ci/issue-report/package.json
@@ -1,7 +1,8 @@
{
"dependencies": {
"@octokit/rest": "^21.1.1",
- "nodemailer": "^6.9.9"
+ "nodemailer": "^6.9.9",
+ "node-fetch": "^2.6.1"
},
"type": "module"
}