Skip to content

Commit

Permalink
fix: undefined failures & JSON error
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored and joyeecheung committed Oct 19, 2020
1 parent 5ad7e4e commit 2c0cf83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bin/ncu-ci
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,11 @@ class CICommand {
await build.getResults();
build.display();

if (argv.json) {
const json = build.formatAsJson();
if (json !== undefined) {
this.json = this.json.concat(json);
}
// Set this.json regardless of whether the user has passed
// --json - it's needed for failure aggregation.
const json = build.formatAsJson();
if (json !== undefined) {
this.json = this.json.concat(json);
}

if ((argv.copy || argv.markdown) && !argv.stats) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ci/failure_aggregator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
const _ = require('lodash');
const chalk = require('chalk');
const { getMachineUrl, parsePRFromURL } = require('../links');
const { FAILURE_TYPES_NAME } = require('./ci_failure_parser');
const {
parseJobFromURL,
FAILURE_TYPES_NAME,
CI_TYPES
} = require('./ci_type_parser');
const {
Expand Down

0 comments on commit 2c0cf83

Please sign in to comment.