ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.81k stars 648 forks source link

QA: Commit messages #86

Open Kreyren opened 5 years ago

Kreyren commented 5 years ago

Standardize commit messages so that searching in commit history is easier.

Referencing: https://github.com/wine-mirror/wine/commits/master

nntoan commented 5 years ago

Hi @Kreyren, I do agree that we should standardize commit messages. So here is my very first proposal for this.

Below is our repository structure:

Screenshot 2019-08-14 11 53 34

oh-my-bash.sh

init: Fixed #GITHUB-ISSUE-NUMBER or Adding some new thing or Improve performance..etc

*.md / LICENSE / .github

meta: Change something

aliases / plugins / completions / themes

aliases: Fixed #GITHUB-ISSUE-NUMBER
OR
chmod: Added new permission command
plugins: Fixed #GITHUB-ISSUE-NUMBER
OR
battery: Make battery great again
completions: Fixed #GITHUB-ISSUE-NUMBER
OR
git-avh: Doing something here
themes: Fixed #GITHUB-ISSUE-NUMBER
OR
agnoster: I updated nothing

custom

example: Do something cool

lib / templates

lib: For the greater good

tools/install.sh | tools/uninstall.sh

installer: I changed ABC XYZ

tools/upgrade.sh | tools/check_for_upgrade.sh

upgrader: Fixed this fixed that

tools

tools: Added some new scripts

Please help me correct or let me know what's your thoughts regards this :)

Cheers, Toan

rpotter12 commented 5 years ago

@nntoan I like this proposal :)

Kreyren commented 5 years ago

Assigned P1 since this is maintainance issue which should be investigated with P1

Kreyren commented 5 years ago

Currently we have 63 commits it might be worth it to fix the commit messages under P5 according to this issue.

nntoan commented 5 years ago

@rpotter12 Thanks :)

So if you guys all agree with this proposal, then I think it should be documented somewhere (best place is Wiki), linked it into the CONTRIBUTING.md for eg then we can resolve #93 .

Cheers,

cc @Kreyren

Kreyren commented 5 years ago

I think it should be documented somewhere (best place is Wiki), linked it into the CONTRIBUTING.md

Recommends using just link to CONTRIBUTING.md on wiki

Kreyren commented 5 years ago

image

i don't agree with this the commit message should only have summery and references on relevant issues/pull requests should be under it alike

`aliases: Fixes a b c d

DESCRIPTION

Fixes: #123456132

Signature (optional)



Which is standard for commits

> gnoster: I updated nothing

Also avoid using `I did something..` in commit messages since it's not professional ~~and it annoys me xD~~