Keep pullRequestNumber on build not on commit
This commit is contained in:
parent
ea3ea61146
commit
c9f08417f7
|
@ -15,6 +15,7 @@ require 'travis/model'
|
|||
finishedAt: DS.attr('string')
|
||||
pullRequest: DS.attr('boolean')
|
||||
pullRequestTitle: DS.attr('string')
|
||||
pullRequestNumber: DS.attr('number')
|
||||
|
||||
repo: DS.belongsTo('Travis.Repo')
|
||||
commit: DS.belongsTo('Travis.Commit')
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<dd class="commit"><a {{bindAttr href="urlGithubCommit"}}>{{formatCommit build.commit}}</a></dd>
|
||||
{{#if build.pullRequest}}
|
||||
<dt>{{t builds.pullRequest}}</dt>
|
||||
<dd class="pull_request"><a {{bindAttr href="build.commit.compareUrl"}}>#{{build.commit.pullRequestNumber}} {{build.pullRequestTitle}}</a></dd>
|
||||
<dd class="pull_request"><a {{bindAttr href="build.commit.compareUrl"}}>#{{build.pullRequestNumber}} {{build.pullRequestTitle}}</a></dd>
|
||||
{{else}}
|
||||
{{#if commit.compareUrl}}
|
||||
<dt>{{t builds.compare}}</dt>
|
||||
|
|
Loading…
Reference in New Issue
Block a user