This is a good article that covers how to communicate in a pull request. I think there are two other essentials in making good pull requests. 1. Good commit messages. Follow this guide: https://chris.beams.io/posts/git-commit/ 2. Following the pull request workflow correctly. Follow this guide: https://github.com/susam/gitpr Writing good and consistent commit messages make the commit log easy to read and search. Pull…
I will elaborate why I think the two points in my comment above are important. Git Rebase, Git bisect and other operations display the commit summary line when they get stuck with merge conflicts or find an issue, so I find good commit summary lines very helpful during those operations. Without good commit messages, resolving issues during those operations can get confusing. This is one of the reasons why writing goo…
How to write the perfect pull request (2015)
11–20 of 40 posts
Re: How to write the perfect pull request (2015)
#12Earlier quoted context omitted.
I will elaborate why I think the two points in my comment above are important. Git Rebase, Git bisect and other operations display the commit summary line when they get stuck with merge conflicts or find an issue, so I find good commit summary lines very helpful during those operations. Without good commit messages, resolving issues during those operations can get confusing. This is one of the reasons why writing goo…
If you share a development branch with someone, then you should prefer merging over rebasing because rebasing changes rewrites the commit history, causing the locally checked out branches among collaborators to disagree. You never know when someone will need to take your branch to develop on, so generally it’s a good idea to merge over rebase. When master is merged into your PR branch, the fork point is forwarded to…
I do agree that merge commits can obfuscate history somewhat. However, I agree with dimes that its better to not rewrite history just to keep the commit history clean... the cleanliness is not worth the price for inability to collaborate effectively.
Also, any professional code review tool will not let merge commits affect your review. Highly recommend reviewable.io for this.
Re: How to write the perfect pull request (2015)
#13Yes, GitHub would love for their namespace to be the implied namespace in commit messages.
In other words, please don't. Use names or e-mail addresses to refer to people.
Re: How to write the perfect pull request (2015)
#14> Use emoji to clarify tone. Compare “:sparkles: :sparkles: Looks good :+1: :sparkles: :sparkles:” to “Looks good.” Or, you know, write "Looks great!" Exclamation mark is the OG emoji
Re: How to write the perfect pull request (2015)
#15Discussed at the time: https://news.ycombinator.com/item?id=9717937
Re: How to write the perfect pull request (2015)
#16> @mention Yes, GitHub would love for their namespace to be the implied namespace in commit messages. In other words, please don't. Use names or e-mail addresses to refer to people.
Re: How to write the perfect pull request (2015)
#17https://mtlynch.io/human-code-reviews-1/
I still think about it when reviewing code, it's really sound advice over all
Re: How to write the perfect pull request (2015)
#18> @mention Yes, GitHub would love for their namespace to be the implied namespace in commit messages. In other words, please don't. Use names or e-mail addresses to refer to people.
....but GitHub mentions are actually useful, and send notifications to users to alert them to look at the post.
Re: How to write the perfect pull request (2015)
#19> @mention Yes, GitHub would love for their namespace to be the implied namespace in commit messages. In other words, please don't. Use names or e-mail addresses to refer to people.
....but GitHub mentions are actually useful, and send notifications to users to alert them to look at the post.
Re: How to write the perfect pull request (2015)
#20Earlier quoted context omitted.
I will elaborate why I think the two points in my comment above are important. Git Rebase, Git bisect and other operations display the commit summary line when they get stuck with merge conflicts or find an issue, so I find good commit summary lines very helpful during those operations. Without good commit messages, resolving issues during those operations can get confusing. This is one of the reasons why writing goo…
If you share a development branch with someone, then you should prefer merging over rebasing because rebasing changes rewrites the commit history, causing the locally checked out branches among collaborators to disagree. You never know when someone will need to take your branch to develop on, so generally it’s a good idea to merge over rebase. When master is merged into your PR branch, the fork point is forwarded to…
Your parent comment is suggesting rebase only for pulling latest changes in master into your pull request.
For merging someone's pull request to the team's master, sure use a merge commit.
But if you are working on a pull request and while you are working on it, the team's master gets updated and now you want to base your work on the recent master, by all means, use git rebase. That is what it is meant for, to rebase your work on another work. It's in the name itself.
Right tool for the right job.