parent
5cf4149758
commit
0f0bb771bf
|
@ -286,8 +286,9 @@ cache(function(data, match, sendBadge, request) {
|
||||||
// Find the latest push on this branch.
|
// Find the latest push on this branch.
|
||||||
var build = null;
|
var build = null;
|
||||||
for (var i = 0; i < json.length; i++) {
|
for (var i = 0; i < json.length; i++) {
|
||||||
if (json[i].state === 'finished' && json[i].event_type === 'push'
|
if (json[i].state === 'finished' &&
|
||||||
&& json[i].branch === branch) {
|
(json[i].event_type === 'push' || json[i].event_type === 'pull_request')
|
||||||
|
&& json[i].branch === branch) {
|
||||||
build = json[i];
|
build = json[i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user