yarn command

pull/4386/head
aniket-engg 11 months ago committed by Aniket
parent d4e299d4df
commit 301eff6adb
  1. 7
      createPRToBeta.ts
  2. 1
      package.json

@ -2,15 +2,18 @@
// Pull request number should be provided while running this script // Pull request number should be provided while running this script
// It will use the reference branch same as the shared PR // 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 // To create a new PR, Github auth token with scope 'repo' needs to be provided
// Command to run this script: fromPR=4369 authToken=abc123 npx ts-node createPRToBeta.ts // Command to run this script: fromPR=4369 authToken=abc123 yarn run createPRToBeta
import { Octokit } from "octokit" import { Octokit } from "octokit"
async function createPR (prNumber, baseBranch) { async function createPR (prNumber, baseBranch) {
try { try {
if (!prNumber) throw new Error(`Please provide a PR number with 'fromPR' env variable`)
const octokit = new Octokit({ const octokit = new Octokit({
auth: process.env.authToken || '' auth: process.env.authToken || ''
}) })
const owner = 'ethereum' const owner = 'ethereum'
const repo = 'remix-project' const repo = 'remix-project'
@ -36,7 +39,7 @@ async function createPR (prNumber, baseBranch) {
}) })
console.log('Pull Request Created!!! See: ', response.data.html_url) console.log('Pull Request Created!!! See: ', response.data.html_url)
} catch (error) { } catch (error) {
console.error('Error during PR creation: ', error.message) console.error('Error during PR creation: ', error.message)
} }

@ -60,6 +60,7 @@
"updateBeta": "gulp & gulp updateBetaToMaster;", "updateBeta": "gulp & gulp updateBetaToMaster;",
"updateLive": "gulp & gulp updateLiveToBeta;", "updateLive": "gulp & gulp updateLiveToBeta;",
"publishTagfromBeta": "gulp & gulp publishTagfromBeta;", "publishTagfromBeta": "gulp & gulp publishTagfromBeta;",
"createPRToBeta": "npx ts-node createPRToBeta.ts",
"browsertest": "sleep 5 && yarn run nightwatch_local", "browsertest": "sleep 5 && yarn run nightwatch_local",
"csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/src/assets/css/font-awesome.min.css' apps/remix-ide/src/assets/css/", "csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/src/assets/css/font-awesome.min.css' apps/remix-ide/src/assets/css/",
"downloadsolc_assets_e2e": "node ./apps/remix-ide/ci/download_e2e_assets.js", "downloadsolc_assets_e2e": "node ./apps/remix-ide/ci/download_e2e_assets.js",

Loading…
Cancel
Save