Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions scripts/ci/issue-report/generateReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
* limitations under the License.
*/

const { Octokit } = require("@octokit/rest");
const nodemailer = require('nodemailer');
import { Octokit } from "@octokit/rest";
import nodemailer from 'nodemailer';
import fetch from 'node-fetch';

const ONE_HOUR = 60 * 60 * 1000;

Expand Down Expand Up @@ -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.
Expand Down
70 changes: 70 additions & 0 deletions scripts/ci/issue-report/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions scripts/ci/issue-report/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"dependencies": {
"@octokit/rest": "^21.1.1",
"nodemailer": "^6.9.9"
}
"nodemailer": "^6.9.9",
"node-fetch": "^2.6.1"
},
"type": "module"
}
Loading