rafinskipg/git-changelog

View on GitHub
tasks/lib/link-to-commit.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
'use strict';

var debug = require('debug')('changelog:linkToCommit');
var format = require('util').format;

function linkToCommit(hash) {
  debug('generating link to commit');
  return format(this.links.commit, hash.substr(0, 8), hash);
}

module.exports = linkToCommit;