|
|
|
@ -11,10 +11,12 @@ async function createPR(prNumber, baseBranch) { |
|
|
|
|
const octokit = new Octokit({ |
|
|
|
|
auth: process.env.authToken || '' |
|
|
|
|
}) |
|
|
|
|
const owner = 'ethereum' |
|
|
|
|
const repo = 'remix-project' |
|
|
|
|
|
|
|
|
|
const prData = await octokit.request('GET /repos/{owner}/{repo}/pulls/{pull_number}', { |
|
|
|
|
owner: 'ethereum', |
|
|
|
|
repo: 'remix-project', |
|
|
|
|
owner: owner, |
|
|
|
|
repo: repo, |
|
|
|
|
pull_number: prNumber, |
|
|
|
|
headers: { |
|
|
|
|
'X-GitHub-Api-Version': '2022-11-28' |
|
|
|
@ -22,8 +24,8 @@ async function createPR(prNumber, baseBranch) { |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const response = await octokit.request('POST /repos/{owner}/{repo}/pulls', { |
|
|
|
|
owner: 'ethereum', |
|
|
|
|
repo: 'remix-project', |
|
|
|
|
owner: owner, |
|
|
|
|
repo: repo, |
|
|
|
|
title: prData.data.title + ' (for beta)', |
|
|
|
|
body: prData.data.body + ' (for beta)', |
|
|
|
|
head: prData.data.head.ref, |
|
|
|
|