travis-web/app/mixins/github-url-properties.js
2016-01-04 13:15:15 +01:00

13 lines
463 B
JavaScript

import { githubCommit, githubPullRequest } from 'travis/utils/urls';
import Ember from 'ember';
export default Ember.Mixin.create({
urlGithubCommit: function() {
return githubCommit(this.get('repo.slug'), this.get('commit.sha'));
}.property('repo.slug', 'commit.sha'),
urlGithubPullRequest: function() {
return githubPullRequest(this.get('repo.slug'), this.get('build.pullRequestNumber'));
}.property('repo.slug', 'build.pullRequestNumber')
});