ElektraInitiative / PermaplanT

https://www.permaplant.net
BSD 3-Clause "New" or "Revised" License
16 stars 13 forks source link

Branch naming schema #1260

Open horenso opened 7 months ago

horenso commented 7 months ago

Since we transition to a fresh repo on Gitlab, it may be a good time to rethink how we name branches.

At my current workplace, we adopted the following structure for naming our branches:

<username>/<issue-number>/<given-branch-name>

Where username is just a unique shorthand or nickname. We also prefix our commit messages with the issue number, such that the history is easily searchable.

There are several things one could include in the branch name:

I'd be very interested to know what naming conventions you all used in different projects and what suggested you might have 🙃

markus2330 commented 7 months ago

Thx for reporting! I agree with including the username and issue number makes sense.

In GitLab when clicking on "create branch" in an issue, a branch <issue number>-<title-of-issue> gets created by default. But you can choose any other name for the branch when pressing the little arrow on the right.

So we can easily use <username>/<issue number>/<title-of-issue>.

I think there is little benefit from including even more information.