# Quality of commit messages

**URL:** https://meta.discourse.org/t/quality-of-commit-messages/96004
**Category:** Development
**Created:** [8월 30, 2018, 1:04오후 UTC](https://meta.discourse.org/t/quality-of-commit-messages/96004 "2018-08-30T13:04:25Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [8월 30, 2018, 1:04오후 UTC](https://meta.discourse.org/t/quality-of-commit-messages/96004/1 "2018-08-30T13:04:26Z")

</div>

Let’s take this as an example. (sorry @tgxworld, this is really just an example, I could have picked so many other commit messages)

[https://github.com/discourse/discourse/commit/a928bf4300f4496bcc86e34d07095db7d3e09edb](https://github.com/discourse/discourse/commit/a928bf4300f4496bcc86e34d07095db7d3e09edb)

I already see you are reverting rails\_multisite back to 2.0.4. What I can not see is the **why** you are doing it. If any of us in a few weeks will look at the gemfile.lock and wonders **why** is this locked to 2.0.4 … no idea. And as a package maintainer and admin of 2 instances, I have no idea “does the reason for the downgrade affect me? do I need to downgrade too even if I don’t use multisite?”

Can we please aim for commit messages that not just restate what was changed but also explain the **why**. IMHO statement on what was changed should just be the hook that connects explanation with the change.

I am not advocating to go as far as e.g. the [haproxy team](http://git.haproxy.org/?p=haproxy.git;a=log) (I love their style though). but something that would improve the current situation would be welcome

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [8월 30, 2018, 9:32오후 UTC](https://meta.discourse.org/t/quality-of-commit-messages/96004/2 "2018-08-30T21:32:53Z")

</div>

My advice here is, drive the change you want

If you see a vague or confusing commit message, leave a comment using GitHub, nobody is being vague on purpose and it is super likely people will respond and clarify

Do this enough times and people will develop new habits

---

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [8월 30, 2018, 9:53오후 UTC](https://meta.discourse.org/t/quality-of-commit-messages/96004/3 "2018-08-30T21:53:35Z")

</div>

I did that a few times already in the past, but sure I can do that more  
if it is ok for you.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [8월 30, 2018, 10:19오후 UTC](https://meta.discourse.org/t/quality-of-commit-messages/96004/4 "2018-08-30T22:19:15Z")

</div>

Absolutely fine with me there is a lot to learn from Shawshank redemption, I will let you know if you are overdoing it

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [8월 30, 2018, 10:36오후 UTC](https://meta.discourse.org/t/quality-of-commit-messages/96004/5 "2018-08-30T22:36:16Z")

</div>

I agree that is a particularly “interesting” commit with no information. But in my opinion those are rare in our codebase, most commits have decent comments.

---

<div class="post-metadata">

### Author: ![darix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darix/32/114280_2.png) [@darix](https://meta.discourse.org/u/darix)
#### Post date: [8월 31, 2018, 1:20오후 UTC](https://meta.discourse.org/t/quality-of-commit-messages/96004/6 "2018-08-31T13:20:25Z")

</div>

[https://github.com/discourse/discourse/commit/8ce8edaf40fb8ea64eb123519c80dc5d84109ab5](https://github.com/discourse/discourse/commit/8ce8edaf40fb8ea64eb123519c80dc5d84109ab5)

The discussion here illustrates the problem very well:

1. I get 2 places mentioned where to look for additional information.
2. Every admin/packager has to know those 2 places to check about the why the version was bumped. There is no link from the version update in discourse to those places.

So instead of one person (the dev who bumps the dep) providing a quick summary, we force all interested users to do the same “work”.

For the same reason it would be good to have the meta links directly in the commit message and not just as a comment on github.

```plaintext
Bump onebox to 1.8.60:
- make instagram icons clickable

```

Takes maybe 10s longer and makes it easier for fellow devs and users to see _why_ we are doing it.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [8월 31, 2018, 1:47오후 UTC](https://meta.discourse.org/t/quality-of-commit-messages/96004/8 "2018-08-31T13:47:35Z")

</div>

I agree that commit message/description could have been better here. I’ll keep this in mind the next time I update onebox version.
