Skip to content

Instantly share code, notes, and snippets.

@carlosagp
Last active September 29, 2015 23:30
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 carlosagp/85a8a778231b4de0f0b2 to your computer and use it in GitHub Desktop.
Save carlosagp/85a8a778231b4de0f0b2 to your computer and use it in GitHub Desktop.
Github Bookmarklet Template
javascript:
(
function() {
var e, i;
e = document.getElementById('pull_request_title');
if (e) {
var m = e.value.match(/\/(\d+)\/(.*)/) || [];
i = m[1] || 'N/A';
e.value = (m[2] || 'Description');
};
e = document.getElementById('pull_request_body');
if (e) {
e.value += '## Zenhub: #'+i+'\n\n## Changes\nAdd a detailed description of the changes made from a developer standpoint.Include code caveats, gotchas and/or things you discovered.\n\n## Testing Plan/Parameters\nA test plan intended for QA to follow to verify that the feature/bug has been addressed. A good test plan with have a list of steps, including urls, login, and specific links to follow. \n\n\## Screenshots\nIf necessary';
};
}
)();
@carlosagp
Copy link
Author

Pull Request Bookmarklet for Github

Just a small customization of an example from: http://nerds.airbnb.com/github-pull-request-bookmarklet/

With branch naming convention

Using this convention: {your_name}/{issue_number}/{description_of_your_branch} the bookmarklet will automagically pick up the issue, generic description text.
updatedprbookmarklet mov

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