deis / docker-go-dev

The containerized Go development environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gen-changelog.sh should also recognize doc( commits

bacongobbler opened this issue · comments

Some users have used doc( instead of docs( in their commits. We should also throw those into the changelog, or alternatively enforce a new script across all repos to enforce the commit guidelines (not recommended).

related: deis/deisrel#21

or alternatively enforce a new script across all repos to enforce the commit guidelines (not recommended)

I liked it when we used a hook to do that for deis/deis. The problem is that you need to opt into the hook-- which not all contributors will, which means mistakes like doc(...) vs docs(...) will still sneak in and won't always be noticed by reviewers since it's such a subtle difference. There's that and then the fact that we now have so many repos and contributors would need to opt in on each.

What if we could somehow build commit message verification into CI instead? That would give us better guarantees.

Auto commit message verification seems like solving a problem that we don't have at scale.

Here's my proposal: (1) add a note to the contributing docs that well-formed commit messages are necessary so we can generate changelogs (and if you don't use the format, your work won't get credited) and (2) continue to check commit msgs on reviews

What if we could somehow build commit message verification into CI instead? That would give us better guarantees.

that's what I was proposing (though it's not really a problem we have right now).

(1) add a note to the contributing docs that well-formed commit messages are necessary so we can generate changelogs (and if you don't use the format, your work won't get credited)

For sure. http://docs-v2.readthedocs.io/en/latest/contributing/submitting-a-pull-request/ should have some info to make that more clear that we grep the commit messages for generating the changelogs.

and (2) continue to check commit msgs on reviews

sgtm.

Bringing the discussion back around, it sounds like option 1 is recommended (check for a doc( tag)?

checking for a doc( tag sgtm 👍

and if you don't use the format, your work won't get credited

A contributor not receiving the credit they deserve isn't the worst thing that can happen though. The worst thing that can happen is that the changelog makes no mention of some contribution that many users would care to know about... which is why I think some better check needs to be automated.

doc() and docs() are now implemented in deisrel changelog.