Skip to content

Commit

Permalink
style: prettier on changelog.js
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Jan 11, 2019
1 parent 852b3a2 commit 40ca56a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions scripts/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '')
Expand Down Expand Up @@ -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) ||
Expand Down

0 comments on commit 40ca56a

Please sign in to comment.