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

Learn to write good commit message and description #1891

Closed
webknjaz opened this issue Mar 29, 2019 · 5 comments
Closed

Learn to write good commit message and description #1891

webknjaz opened this issue Mar 29, 2019 · 5 comments
Assignees

Comments

@webknjaz
Copy link
Member

webknjaz commented Mar 29, 2019

It's a follow-up for:

@decentral1se @ssbarnea I've got a collection of articles about writing meaningful commit messages. I'll post it as a separate issue so that anyone could go through this and we could be on the same page...
Sounds fair?

Originally posted by @webknjaz in #1883 (comment)


                                                 

According to common commit style guides, it is required to write messages in an imperative manner. Make them actionable and atomic. Also avoid using -m as you often need to express more detail in a long way. Here's several articles sharing best practices:

N.B. This all applies to issues and PRs as well. If you submit a patch, everything in diff should refer to only one logical change making it atomic. Ideally, applying a single PR should transition a project from one working state to another completely working state, meaning there shouldn't be a change submitted via two PRs and there shouldn't be anything more than needed to fulfill what's in description and title of the PR.

P.S. Don't scare (other) maintainers with huge changes. Reviewing a PR is hard work. The bigger it is the more chance is that somebody will postpone it until better times (trying to find an appropriate slot in their calendars to the review in one pass).
Smaller changes attract more viewers and people, in general, are more likely to understand tiny patches and their impact.

@webknjaz
Copy link
Member Author

webknjaz commented Mar 29, 2019

There's also a number of things I encourage people to learn about Git. Maybe you will find something for yourselves.

Extras:

@decentral1se
Copy link
Contributor

A serious resource! I wonder should you have a canonical URL on http://webknjaz.me/ :)

@webknjaz
Copy link
Member Author

@decentral1se what do you mean about canonical URL there? :)

Are you suggesting to put up a web page with those links? I normally post this as GitHub issues/tasks in repos for my mentees...

webknjaz referenced this issue Apr 11, 2019
Fixes master by performing fixes that were not tested by Travis due
to current config.

Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
@webknjaz
Copy link
Member Author

Read a good advice recently: https://twitter.com/jefflembeck/status/1118892291995734016

@webknjaz webknjaz pinned this issue May 16, 2019
@webknjaz webknjaz unpinned this issue May 20, 2019
@ssbarnea
Copy link
Member

While this ticket is still very useful I will be closing it because there is no end to it as it not molecule specific.

Most of this coud be included in a docs page but the next question would be: why to document this in molecule when we could just defer this to ansible itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants