travis-web/app/helpers/format-commit.js
2016-01-04 13:15:15 +01:00

11 lines
301 B
JavaScript

import { safe, formatCommit as formatCommitHelper } from 'travis/utils/helpers';
import Ember from 'ember';
export default Ember.Helper.helper(function(params) {
var commit;
commit = params[0];
if (commit) {
return safe(formatCommitHelper(commit.get('sha'), commit.get('branch')));
}
});