Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding additional steps to help move towards the second phase of automated releases #2278

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 with the release)')
}
})()