From 40ca56af22aafc5fc314e1c1dee7520ae2cf69b9 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Fri, 11 Jan 2019 13:07:34 +0100 Subject: [PATCH] style: prettier on changelog.js --- scripts/changelog.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/scripts/changelog.js b/scripts/changelog.js index 1384a62a..527242fb 100755 --- a/scripts/changelog.js +++ b/scripts/changelog.js @@ -86,7 +86,16 @@ oFunctions.keys.previous = function(o, id) { * @see git-scm.com/docs/git-log#_pretty_formats */ log( - { tag: '%d', note: '%N', msg: '%s', hash: '%h', longHash: '%H', author: '%ae', signature: '%G?', time: '%at' }, + { + tag: '%d', + note: '%N', + msg: '%s', + hash: '%h', + longHash: '%H', + author: '%ae', + signature: '%G?', + time: '%at', + }, // replace \r\n etc from value (key, value) => value.replace(/\s\s/g, '') @@ -124,13 +133,13 @@ log( if (msg.match(/^added:\s/gi) || msg.match(/^add:/gi) || msg.match(/^test:/gi)) { changes = changesAdded; } else if ( - msg.match(/^Some files to update$/gi) - && commit.author === "sudo-bot@wdes.fr" - && commit.signature === "G" - && commit.time <= 1540120128 + msg.match(/^Some files to update$/gi) && + commit.author === 'sudo-bot@wdes.fr' && + commit.signature === 'G' && + commit.time <= 1540120128 ) { changes = changesChanged; - msg = "updated: [MySQL] & [MariaDB] data"; + msg = 'updated: [MySQL] & [MariaDB] data'; } else if ( msg.match(/^changed:/gi) || msg.match(/^update:/gi) ||