Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better commit messages #422

Closed
zzgvh opened this issue Jan 15, 2014 · 5 comments
Closed

Better commit messages #422

zzgvh opened this issue Jan 15, 2014 · 5 comments
Assignees

Comments

@zzgvh
Copy link
Contributor

zzgvh commented Jan 15, 2014

This is a meta issue. I don't like the trend of commit messages like "First fix for #311 still need migration". If there's a github issue related to the commit the of course the reference should be included in the commit message header, but expressing what the commit is about in a sentence is really helpful sometimes.

So instead of the message above something like "[#311] Add Project.target_group field. Needs migration" is much nicer.

If the commit message header is too long because you added too much stuff to one commit (and I'm very guilty here myself 😜) then it might be a good idea to split the commit up in logical chunks.

@adriancollier
Copy link
Contributor

Yes you've mentioned this before - apologies for this, just trying to get a change in quick to help you guys out as I know the pressure is on.

Is there further conversation for this needed? I think it's just me that's particularly bad at this - an email to push me back on track will probably do 😄

If there's stuff we need to change or add in the documentation, it can be added to our development process documentation here https://github.com/akvo/akvo-rsr/blob/wiki-docs/docs/RSR%20Developer%20Documentation/Development%20Process/GitHub-Process.md

@zzgvh
Copy link
Contributor Author

zzgvh commented Jan 15, 2014

Hehe, ya I totally understand. I think it's just something to try keep in mind, and get better at over time. I know I easily put too much in a commit and that's no good either.

@carlio
Copy link
Contributor

carlio commented Jan 16, 2014

I'd also like to suggest a better 'schema' for branch naming, so that cleaning them up later becomes easier. In the absence of any better ideas, I like the git flow way in general and propose the following:

  • Feature branches require an issue, and should be issue number followed by the issue title, or a short version - enough to both trace back the originating issue, and also quickly have an idea what's going on in the branch without having to go to github. So feature/422-better-commit-messages as an example.
  • Hotfixes are the same - hotfix/422-better-commit-messages
  • No branches should be created without a prefix of some kind (ie, do-stuff is bad, carl/34-do-stuff is better).
  • We can use the attic prefix to snapshot particular points in time, eg, attic/proweb-provisioning-config

@zzgvh
Copy link
Contributor Author

zzgvh commented Jan 16, 2014

Yep, all good suggestions!

@adriancollier
Copy link
Contributor

Agree, I think all this stuff that helps everyone else see what we're doing is a great idea. Does anyone fancy adding this into the Dev documentation? 😉
https://github.com/akvo/akvo-rsr/blob/wiki-docs/docs/RSR%20Developer%20Documentation/Development%20Process/GitHub-Process.md

@adriancollier adriancollier self-assigned this Mar 25, 2014
@adriancollier adriancollier added this to the 2.3.5 Uglyfruit milestone Mar 25, 2014
@zzgvh zzgvh closed this as completed Mar 26, 2014
@MichaelAkvo MichaelAkvo moved this to Done in RSR Dec 8, 2022
@MichaelAkvo MichaelAkvo added this to RSR Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants