Last modified: 2013-07-30 20:54:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51903, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49903 - commit message templates
commit message templates
Status: NEW
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
wmf-deployment
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-20 19:26 UTC by Sumana Harihareswara
Modified: 2013-07-30 20:54 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sumana Harihareswara 2013-06-20 19:26:55 UTC
Idea: commit message template that gently, briefly encourages people to write commit messages that are human-readable. (Explain what the situation was and what got fixed.)

More ideas welcome & to come.
Comment 1 Chad H. 2013-06-27 16:20:19 UTC
I'm not quite sure what you're wanting here? Is this a feature for gerrit? Commit messages are done on your local machine before pushing.

We've had https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines for some time, maybe it just needs more prominent linking?
Comment 2 Antoine "hashar" Musso (WMF) 2013-06-28 12:09:50 UTC
A possibility would be to have a prepare-commit-msg hook in git that would be setup by git-review.
Comment 3 Amir E. Aharoni 2013-06-29 08:45:34 UTC
Yes, a hook that would prepare a commit message along these lines:

-------------------------------------------
<a title for this commit>

What was the problem?
<explain here>

How does this change fix it?
<explain here>

How to test it?
<explain here>

Bug: XXXX
-------------------------------------------

(I just made this up. The content is totally up for discussion.)

There's a chance that such a template will encourage people to write commit messages that will help others understand, review and test the changes.

If it's possible to push such a hook to everybody through the repos, it would be nice.
Comment 4 Chad H. 2013-06-29 14:42:28 UTC
(In reply to comment #3)
> If it's possible to push such a hook to everybody through the repos, it would
> be nice.

That's not possible.

(In reply to comment #2)
> A possibility would be to have a prepare-commit-msg hook in git that would be
> setup by git-review.

That is.
Comment 5 Sumana Harihareswara 2013-07-30 20:47:12 UTC
Amir is the one who originally came up with this idea (during Open Source Bridge) so if it were possible to change the reporter for this issue to him then I'd suggest that. :)  His comment #3 reflects what I'd like.

https://www.mediawiki.org/wiki/Manual_talk:Coding_conventions/PHP#Recommending_some_minimum_documentation_practices has some additional ideas regarding what we could put into the prepare-commit-msg hook.
Comment 6 Chad H. 2013-07-30 20:54:40 UTC
We could create such a hook, but there's no way to get it on people's hosts automatically fwiw (hooks are not tracked in git repos).

So whatever we did, it'd require some bit of manual setup for users :(

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links