pull/4386/head
aniket-engg 11 months ago committed by Aniket
parent c3c8a56622
commit 85b53eaf29
  1. 6
      createPRToBeta.js

@ -2,7 +2,7 @@ const { Octokit } = require("octokit");
async function createPR(prNumber, baseBranch) {
const octokit = new Octokit({
auth: ''
auth: process.env.authToken || ''
})
const prData = await octokit.request('GET /repos/{owner}/{repo}/pulls/{pull_number}', {
@ -29,6 +29,6 @@ async function createPR(prNumber, baseBranch) {
console.log('Pull Request Created!!! See: ', response.data.html_url)
}
createPR(process.env.fromPR, process.env.baseBranch || 'remix_beta')
createPR(process.env.fromPR, 'remix_beta')
// Run: fromPR=4369 node createPR.js
// Run: fromPR=4369 authToken=abc123 node createPRToBeta.js
Loading…
Cancel
Save