Skip to content

Instantly share code, notes, and snippets.

@joeldart
Created March 14, 2012 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeldart/2037810 to your computer and use it in GitHub Desktop.
Save joeldart/2037810 to your computer and use it in GitHub Desktop.
Create child issue
//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