Earlier quoted context omitted.
But still the test would only fail after the merge, whereas you'd want to catch this before.
On GitHub you can have tests run before you've merged, so you know whether it's safe or not.
A better pull request
31–40 of 167 posts
Re: A better pull request
#32Earlier quoted context omitted.
But still the test would only fail after the merge, whereas you'd want to catch this before.
On GitHub you can have tests run before you've merged, so you know whether it's safe or not.
Re: A better pull request
#33For the past couple of years I've only used GitHub's web-based PR tool for code discussion/peer review. Don't ever click that "merge" button.
Another reason I hate the merge button: It creates an extra commit solely for the merge.
Re: A better pull request
#34Earlier quoted context omitted.
It speaks to github's prominence in the open source community and Atlassians's prominence in professional/enterprise environments.
Are there that many non-enterprise companies using Bitbucket over Github? Most startups and mid-sized companies I know use Github for private repo hosting.
On the other hand, GitHub's stuff generally does feel nicer to use and better and more thoughtfully UX'd.
Re: A better pull request
#35Solution: Don't ever merge branches using a web GUI. Do the merge locally and then push to master. For the past couple of years I've only used GitHub's web-based PR tool for code discussion/peer review. Don't ever click that "merge" button. Another reason I hate the merge button: It creates an extra commit solely for the merge.
Re: A better pull request
#36I agree this is a better way to look at pull requests, but I'm surprised it's as much of a problem as the post implies. For us, whenever we do a pull request, we always rebase against the latest master first. That can be a cat and mouse game, but it usually isn't. Our repos don't change that rapidly.
The problem is, many pull requests take very long to get merged (because of the size of the PR, the review process, etc.), and by the time that they are ready to be merged, the target branch could very well have changed.
Re: A better pull request
#37I agree this is a better way to look at pull requests, but I'm surprised it's as much of a problem as the post implies. For us, whenever we do a pull request, we always rebase against the latest master first. That can be a cat and mouse game, but it usually isn't. Our repos don't change that rapidly.
Personally I think, rebase + auto-squash/auto-fixit makes the history a lot easier when it's time to look back. It just happens so rarely I wonder if it's really worth the effort I expend on it.
Re: A better pull request
#38I agree this is a better way to look at pull requests, but I'm surprised it's as much of a problem as the post implies. For us, whenever we do a pull request, we always rebase against the latest master first. That can be a cat and mouse game, but it usually isn't. Our repos don't change that rapidly.
The problem is, many pull requests take very long to get merged (because of the size of the PR, the review process, etc.), and by the time that they are ready to be merged, the target branch could very well have changed.
[0] i.e. looks like http://blog.carbonfive.com/wp-content/uploads/2010/12/multip...
Re: A better pull request
#39Seems quite sensible. This, some commentary on forking[1] I ran across the other day, and the way SourceTree is miles beyond github's client, all make me suspect I should be at least trying out bitbucket. But since literally everything I collaborate with is on github, I've not gotten around to it. Am I missing out, or does bitbucket have its own weak spots? [1] http://zbowling.github.io/blog/2011/11/25/github/
I use bitbucket mainly to host all my private repos (unlimited free private repos) and use github for my public ones. I'm not sure what the tradeoffs are regarding features (so far I'm not missing anything on bitbucket) but it's still git so the core things are still the same.
Re: A better pull request
#40Earlier quoted context omitted.
On GitHub you can have tests run before you've merged, so you know whether it's safe or not.
Can't you run unit tests before you merge on an Atlassian service too?