From 95b31e3f78c5446c58983f40e0ef688adf51d75f Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 2 Jan 2024 18:41:42 +0530 Subject: [PATCH] js to ts --- createPRToBeta.js => createPRToBeta.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename createPRToBeta.js => createPRToBeta.ts (90%) diff --git a/createPRToBeta.js b/createPRToBeta.ts similarity index 90% rename from createPRToBeta.js rename to createPRToBeta.ts index f5091158d7..313ed2eab8 100644 --- a/createPRToBeta.js +++ b/createPRToBeta.ts @@ -2,9 +2,9 @@ // Pull request number should be provided while running this script // It will use the reference branch same as the shared PR // To create a new PR, Github auth token with scope 'repo' needs to be provided -// Command to run this script: fromPR=4369 authToken=abc123 node createPRToBeta.js +// Command to run this script: fromPR=4369 authToken=abc123 npx ts-node createPRToBeta.ts -const { Octokit } = require("octokit"); +import { Octokit, App } from "octokit" async function createPR(prNumber, baseBranch) { const octokit = new Octokit({