Skip to content

Instantly share code, notes, and snippets.

@arschmitz
Last active December 9, 2015 16:01
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 arschmitz/62020be0d8f69de346ea to your computer and use it in GitHub Desktop.
Save arschmitz/62020be0d8f69de346ea to your computer and use it in GitHub Desktop.
changelog.Changelog.prototype.ticketUrl = function( id, ticketType ) {
if ( !ticketType ) {
ticketType = this.ticketTypes[0];
}
return this.ticketUrlTemplates[ ticketType ]
.replace( "{id}", id )
.replace( "{project}", id.split( "-" )[ 0 ] );
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment