Skip to content

Instantly share code, notes, and snippets.

@bichotll
Created May 13, 2016 09:11
Show Gist options
  • Save bichotll/826658dacf294523ba80556d4059a600 to your computer and use it in GitHub Desktop.
Save bichotll/826658dacf294523ba80556d4059a600 to your computer and use it in GitHub Desktop.
Get title of the task to create a branch
/**
* Returns the name of the branch regarding the task number and title
* @example XXX-129-remove-blank-space-from-selector-view
*/
function rsGetTitle() {
return $('#key-val').text() + '-' + $('#summary-val').text().toLowerCase().replace(/ /g, '-');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment