alexisruccius

alexisruccius

Hi everyone,

I noticed that the Phoenix framework doesn’t use Conventional Commit prefixes like feat:, fix:, or docs: in its commit messages.

Is there a reason this style isn’t common in Elixir projects? Would using it be helpful or unnecessary for open source libraries?

I’m deciding whether to adopt it in my own project—curious to hear your thoughts.

Thanks! :slight_smile:

Showing Posts 1 to 10

camatcode

camatcode

Can’t speak for phx - but i’ve been using conventional commits for my open source stuff, i put it down to a matter of style and preference.

I particularly like it for calculating SemVers and the uniform feel of changelogs.

If you’re exploring them, I’d have a look at something like GitHub - cocogitto/cocogitto: The Conventional Commits toolbox · GitHub , which makes conventional commits trivial to use.

frankdugan3

frankdugan3

Quite a few projects do use Conventional Commits, notably the Ash suite of libs.

A good library for implementing Conventional Commits in Elixir is GitOps. It handles versioning based on commit types, tagging, managing changelogs, updating the latest version number in documentation e.g. README.md, etc.

zorn

zorn

Can’t speak for the phoenix project.

I tend to use them in my own projects. I find them a helpful signal, but not a requirement. To me, it is a sign that the project is detail-oriented.

In my repo I use a workflow to enforce this style:

https://github.com/zorn/dustoff/blob/main/.github/workflows/lint-pr.yaml

sorentwo

sorentwo

Oban Core Team

Personally I greatly dislike the “conventional commit” style and prefer descriptive, sentence case commits with additional context. I’ll rewrite the message for pull requests that start with “feat:” to match the style of the repository.

When it comes to the changelog, I group bugs and enhancements, but do it when I’m writing the changelog. The messages usually get expanded into something more descriptive as well.

21
Post #4
sodapopcan

sodapopcan

I also prefer sentence case in the imperative tense matching git’s auto-generated merge commits, ie, “Merge a into b”. There’s no period because, no matter what anyone tells you, it’s a subject line that hopefully has a body :wink: Also, if you happen to be vehemently against squashing PRs (although it does make sense in many libraries) then conventional commits feel like they’d be an annoyance.

Ultimately it doesn’t matter so long as it’s consistent. Of course, multiple companies I’ve worked for don’t even care about consistency so I’ve largely stopped stressing about it and sometimes just do git commit -am "changes".

Apologies for the rant :victory_hand:

arcanemachine

arcanemachine

Any standard is probably better than no standard.

zachdaniel

zachdaniel

Creator of Ash

I’d like to make git_ops support a tag type syntax for commits in addition to conventional commits.

improvement: make the frobnicator work better

some more details

could easily be

make the frobnicator work better

#improvement
#breaking-change

Or other potential formats. It would be a really simple change to our parser. The point for me is just being able to get that info from the commits, not the actual format. It would probably be trivial to implement.

In case anyone is interested in the features (automatic changelog generation and version numbering) but don’t want to use conventional commits, PRs welcome to git_ops :smiley:
I might even switch to something like that for the Ash project at some point.

We also just added logic to use the GitHub API to include links to the user who contributed a change where possible as part of generating a changelog etc. Conventional commits is just an implementation detail at the moment.

sodapopcan

sodapopcan

I remember you introducing this but I assume I wrote it off due to the conventional commit dependency. It’s cool that you’re considering an alternative as this looks really useful. I’m still not 100% sure I’d use it but hypothetically would you be open to a PR for making it available as an escript? None of my (active) open source projects are Elixir. Or is this just meant for Elixir projects (looking through the README it doesn’t seem that way). EDIT: oh right the config would maybr have to support JSON or toml or something in this case?

zachdaniel

zachdaniel

Creator of Ash

Yes, happy to use json or toml config to support being an escript or some other type of thing :slight_smile:

alexisruccius

alexisruccius OP

Thanks so much for all the thoughtful and detailed replies! :heart:

I really appreciate the mentions of GitOps and the lint workflow.

As I read the arguments for sentence case in the imperative tense, I now find it more logical than the sometimes redundant prefixes.

For now, I tend to stick with sentence case in the imperative tense to keep things consistent in my current library.

Thanks again! :grinning_face_with_smiling_eyes:

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apz
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
georgeguimaraes
Just published claude-code-elixir, a plugin marketplace for Claude Code with Elixir support. These are the plugins I’ve been using for my...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews