Created
July 28, 2014 23:53
-
-
Save magoon/88e047c9db7c771016ea to your computer and use it in GitHub Desktop.
Bookmarklet to turn a Bitbucket pull request into a git patch. Simply create a new bookmark and paste this in as the address, then click it when viewing a Bitbucket PR. This allows you to test anybody's PR on your local environment without merging. To apply a patch, copy the entire patch into your clipboard and, on a Mac, run this from console: …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7Bwindow.location.href%3D%22https%3A%2F%2Fbitbucket.org%2Fapi%2F2.0%2Frepositories%2F%22%2BJSON.parse(%24(%22%5Bdata-current-repo%5D%22).attr(%22data-current-repo%22)).fullslug%2B%22%2Fpullrequests%2F%22%2BJSON.parse(%24(%22%5Bdata-current-pr%5D%22).attr(%22data-current-pr%22)).localId%2B%22%2Fpatch%22%3B%7D)(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment