cargo-binstall/.github/scripts/release-pr-template.ejs

62 lines
1.7 KiB
Text

This is a release PR for **<%= crate.name %>** version **<%= version.actual %>**<%
if (version.actual != version.desired) {
%> (performing a <%= version.desired %> bump).<%
} else {
%>.<%
}
%>
<% if (pr.mergeStrategy == "merge") { %>
**Use a merge commit.**
<% } else if (pr.mergeStrategy == "rebase") { %>
**Use rebase merge.**
<% } else if (pr.mergeStrategy == "squash") { %>
**Use squash merge.**
<% } else if (pr.mergeStrategy == "bors") { %>
**Merge by commenting:**
| bors r+ |
|:-:|
<% } %>
<% if (crate.name == "cargo-binstall") { %>
Upon merging, this will automatically create the tag `v<%= version.actual %>`, build the CLI, and create a GitHub release with the release notes below.
You will still need to manually publish the cargo crate:
```
$ git switch main
$ git pull
$ git switch --detach v<%= version.actual %>
$ cargo publish -p <%= crate.name %>
```
<% } else { %>
Upon merging, this will create the tag `<%= crate.name %>-v<%= version.actual %>`.
You will still need to manually publish the cargo crate:
```
$ git switch main
$ git pull
$ git switch --detach <%= crate.name %>-v<%= version.actual %>
$ cargo publish -p <%= crate.name %>
```
<% } %>
**To trigger builds initially, close and then immediately re-open this PR once.**
<% if (pr.releaseNotes) { %>
---
_Edit release notes into the section below:_
<!-- do not change or remove this heading -->
### Release notes
_Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for `cargo install` in most cases. Install it today with `cargo install cargo-binstall`, from the binaries below, or if you already have it, upgrade with `cargo binstall cargo-binstall`._
#### In this release:
-
#### Other changes:
-
<% } %>