Exclude Pull Requests from the branches.
Currently they are included because the AngularJS "filter" filter defaults to a substring match rather than a strict equality comparison, so filtering by '' includes everything. https://docs.angularjs.org/api/ng/filter/filter
This commit is contained in:
parent
8408cfd055
commit
77e059ae98
1 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,7 @@
|
||||||
<p>Add a .drone.yml file and make a commit to trigger a build</p>
|
<p>Add a .drone.yml file and make a commit to trigger a build</p>
|
||||||
<div><i class="fa fa-file-code-o"></i></div>
|
<div><i class="fa fa-file-code-o"></i></div>
|
||||||
</section>
|
</section>
|
||||||
|
<section ng-repeat="group in commits | filter:{ pull_request: '' }:true | unique: 'branch'">
|
||||||
<section ng-repeat="group in commits | filter: { pull_request: '' } | unique: 'branch'">
|
|
||||||
<div class="pure-g cards">
|
<div class="pure-g cards">
|
||||||
<h2 class="pure-u-1" style="font-size:22px;margin-bottom:20px;"><i class="fa fa-code-fork"></i> {{group.branch}}</h2>
|
<h2 class="pure-u-1" style="font-size:22px;margin-bottom:20px;"><i class="fa fa-code-fork"></i> {{group.branch}}</h2>
|
||||||
<a class="pure-u-1 pure-u-md-1-4 pure-u-lg-1-4 pure-u-xl-1-4 card card" ng-href="/{{ repo | fullPath }}/{{ commit.branch }}/{{ commit.sha }}" ng-repeat="commit in commits | filter:{ branch:group.branch }:true | limitTo:4" data-status="{{ commit.status }}">
|
<a class="pure-u-1 pure-u-md-1-4 pure-u-lg-1-4 pure-u-xl-1-4 card card" ng-href="/{{ repo | fullPath }}/{{ commit.branch }}/{{ commit.sha }}" ng-repeat="commit in commits | filter:{ branch:group.branch }:true | limitTo:4" data-status="{{ commit.status }}">
|
||||||
|
|
Loading…
Reference in a new issue