Menu

Better Release PRs with brel
📰

Better Release PRs with brel

DEV Community: rust·Matteo·11 days ago
#eYXKIcmf
#devtorust#devto#dev#version#file
Reading 0:00
15s threshold

I really like release-plz for my Rust projects ( balzac uses it); it's easy to configure, it automatically updates the relevant version fields (in cargo.toml) and can even update the CHANGELOG.md of your repo. There's only one problem: it only works with Rust. So I decided to make my own.

Better Releases

better releases is a tool that works on any Github repo, with any language and any stack. It uses a simple-ysh brel.toml file and:

reads the commit from the previous tag (if it exists)

figures out the next tag based on conventional commits

opens/updates a release pr

Once the pr is merged, it can optionally publish the detected tag to potentially trigger other workflows; in the drizzle-sluggable repo, this is what I use to trigger publishing the package to npm.

Getting Started

To get started, you need to install brel (better-releases' main tool); if you don't want to, you can also run it with

npx brel@latest init

Enter fullscreen mode

Exit fullscreen mode

The init command will ask some question to…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.