Skip to content

Commit 301eff6

Browse files
committed
yarn command
1 parent d4e299d commit 301eff6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

createPRToBeta.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
// Pull request number should be provided while running this script
33
// It will use the reference branch same as the shared PR
44
// To create a new PR, Github auth token with scope 'repo' needs to be provided
5-
// Command to run this script: fromPR=4369 authToken=abc123 npx ts-node createPRToBeta.ts
5+
// Command to run this script: fromPR=4369 authToken=abc123 yarn run createPRToBeta
66

77
import { Octokit } from "octokit"
88

99
async function createPR (prNumber, baseBranch) {
1010
try {
11+
if (!prNumber) throw new Error(`Please provide a PR number with 'fromPR' env variable`)
12+
1113
const octokit = new Octokit({
1214
auth: process.env.authToken || ''
1315
})
16+
1417
const owner = 'ethereum'
1518
const repo = 'remix-project'
1619

@@ -36,7 +39,7 @@ async function createPR (prNumber, baseBranch) {
3639
})
3740

3841
console.log('Pull Request Created!!! See: ', response.data.html_url)
39-
42+
4043
} catch (error) {
4144
console.error('Error during PR creation: ', error.message)
4245
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"updateBeta": "gulp & gulp updateBetaToMaster;",
6161
"updateLive": "gulp & gulp updateLiveToBeta;",
6262
"publishTagfromBeta": "gulp & gulp publishTagfromBeta;",
63+
"createPRToBeta": "npx ts-node createPRToBeta.ts",
6364
"browsertest": "sleep 5 && yarn run nightwatch_local",
6465
"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/",
6566
"downloadsolc_assets_e2e": "node ./apps/remix-ide/ci/download_e2e_assets.js",

0 commit comments

Comments
 (0)