Skip to content

Commit

Permalink
fix: open draft PR instead
Browse files Browse the repository at this point in the history
  • Loading branch information
salmanm committed Nov 8, 2021
1 parent 8a4cd8f commit 67c6579
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const { runSpawn } = require('./util')
const getPRBody = (releaseMeta, notes, url) => `
## Optic Release Automation
This PR is opened by Github action [optic-release-automation](https://github.com/nearform/optic-release-automation).
This **draft** PR is opened by Github action [optic-release-automation](https://github.com/nearform/optic-release-automation).
A **draft** release [${releaseMeta.version}](${url}) has been created.
A new **draft** release [${releaseMeta.version}](${url}) has been created.
#### If you merge the PR
#### If you want to go ahead with the release, please mark this draft PR as ready and merge it. When you merge:
- The release will be published
- The npm package with tag \`${
Expand Down Expand Up @@ -66,5 +66,6 @@ module.exports = async function ({ github, context, inputs }) {
base: context.payload.ref,
title: `${PR_TITLE_PREFIX} ${branchName}`,
body: getPRBody(releaseMeta, data.body, data.html_url),
draft: true,
})
}

0 comments on commit 67c6579

Please sign in to comment.