Skip to content

Commit

Permalink
Adding additional steps to help move towards the second phase.
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliecarey committed Aug 1, 2023
1 parent fae65a2 commit 9f5b743
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/utils/create-release-branch
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function exec (command, { allowStderr = false, hideStd = false } = {}) {
if (!hideStd) {
console.log(`${stdout}`)
}
resolve(stdout)
resolve(`${stdout}`)
})
})
return newVersion
Expand Down Expand Up @@ -107,5 +107,11 @@ async function exec (command, { allowStderr = false, hideStd = false } = {}) {
const prBodyFile = path.join(projectDir, '..', '.git-pr-body')
await fsp.writeFile(prBodyFile, partialChangelog.join('\n'))

await exec(`gh pr create --base main --title "Preparing for release ${newVersion} (automated)." --body-file "${prBodyFile}"`)
const result = await exec(`gh pr create --json --base main --title "Preparing for release ${newVersion} (automated)." --body-file "${prBodyFile}"`)

try {
console.log(JSON.stringify(JSON.parse(result), null, 2))
} catch (e) {
console.log('Result was not parsable as JSON. (not a problem that ')
}
})()

0 comments on commit 9f5b743

Please sign in to comment.