Created
March 14, 2012 16:49
-
-
Save joeldart/2037810 to your computer and use it in GitHub Desktop.
Create child issue
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
//bookmarklet I whipped up to watch for a new issue to get created, pull out the issue number, and paste it into the comments box | |
//this bookmarklet only works from the issues page and currently is messy due to some timing issues I was too lazy to fix | |
javascript:(function(){win=window.open(window.location.href.split("issues")[0]+'issues/new');setTimeout(function(){win.addEventListener("beforeunload",function(){setTimeout(function(){var%20arr=win.location.href.split("/");document.querySelector("[name^=comment]").value="#"+arr[arr.length-1];},2000);},%20false);},2000);}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment