Last active
September 29, 2015 23:30
-
-
Save carlosagp/85a8a778231b4de0f0b2 to your computer and use it in GitHub Desktop.
Github Bookmarklet Template
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() { | |
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'; | |
}; | |
} | |
)(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.