Skip to content

Instantly share code, notes, and snippets.

@jehoshua02
Last active August 29, 2015 14:24
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 jehoshua02/5888def46b4d9762cee3 to your computer and use it in GitHub Desktop.
Save jehoshua02/5888def46b4d9762cee3 to your computer and use it in GitHub Desktop.

PR Template Bookmark

javascript:(function pullRequestTemplate() {
  var e = document.activeElement;
  if (e) {
    e.value += [
      '#### What does this PR do?',
      '#### Where should the reviewer start?',
      '#### How should this be manually tested?',
      '#### Any background context you want to provide?',
      '#### Are there relevant Trello cards?',
      '#### Screenshots',
      '#### Questions',
    ].join("\n");
  }
})();

Just create a bookmark, edit it, and paste this for the link. Then when you are creating pull request, just click the bookmark. It works on the active textarea element, so it will work after pull request creation too as long as you focus the right textarea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment