summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2019-08-08 18:21:28 -0700
committerJason Wray <jason@mapbox.com>2019-08-08 18:21:28 -0700
commitbc09cdbf76ffa50ccdd8dc8df7997fdd3a0eb0d6 (patch)
treecaf99b1219b1e812f715a5334558f46dc7d3d754
parentbbaf1ee1add536caff25d5349a152e9a084e34d7 (diff)
downloadqtlocation-mapboxgl-bc09cdbf76ffa50ccdd8dc8df7997fdd3a0eb0d6.tar.gz
-rwxr-xr-xscripts/check-ci-job-skippability.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check-ci-job-skippability.js b/scripts/check-ci-job-skippability.js
index 55f940db31..5629918791 100755
--- a/scripts/check-ci-job-skippability.js
+++ b/scripts/check-ci-job-skippability.js
@@ -96,7 +96,7 @@ console.step(`Getting list of files changed between ${COMMIT_RANGE}`);
let changedFiles = execSync(`git diff --name-only ${COMMIT_RANGE}`).toString().split('\n');
changedFiles = _.compact(changedFiles);
-console.log(`${changedFiles.length} total files changed.`);
+console.log(`${changedFiles.length} file${changedFiles.length == 1 ? '':'s'} changed.`);
console.step(`Checking changed files for paths relevant to ${CI_JOB_NAME} job`);
@@ -111,7 +111,7 @@ _.remove(changedFiles, function(changedFile) {
});
if (changedFiles.length) {
- console.log(`Found ${changedFiles.length} unskippable changed file${changedFiles.length > 1 ? 's':''}:\n`, changedFiles);
+ console.log(`Found ${changedFiles.length} unskippable changed file${changedFiles.length == 1 ? '':'s'}:\n`, changedFiles);
} else {
console.log(`Found no relevant changed files, so it's safe to skip the remainder of this CI job.`)
if (process.env.CIRCLECI) {