Skip to content

Commit

Permalink
fix(authentication-service): fixed custom-sf-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatdubeysf committed Apr 15, 2021
1 parent 46fe5ce commit 160f45e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 370 deletions.
5 changes: 0 additions & 5 deletions packages/custom-sf-changelog/test/fixtures/_ghe-host.json

This file was deleted.

5 changes: 0 additions & 5 deletions packages/custom-sf-changelog/test/fixtures/_known-host.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/custom-sf-changelog/test/fixtures/_unknown-host.json

This file was deleted.

350 changes: 0 additions & 350 deletions packages/custom-sf-changelog/test/test.js

This file was deleted.

14 changes: 9 additions & 5 deletions packages/custom-sf-changelog/writer-opts.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ function getWriterOpts() {
if (discard) {
return;
}
if (commit.revert) {
commit.type = typeMap.revert;
} else {
commit.type = typeMap[commit.type];
}
commit.type = parseType(commit);

if (commit.scope === '*') {
commit.scope = ''
Expand Down Expand Up @@ -92,3 +88,11 @@ function getWriterOpts() {
notesSort: compareFunc
}
}

function parseType(commit){
if (commit.revert) {
return typeMap.revert;
} else {
return typeMap[commit.type];
}
}
1 change: 0 additions & 1 deletion services/authentication-service/migration.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const childProcess = require('child_process');
const dotenv = require('dotenv');
const dotenvExt = require('dotenv-extended');
const fs = require('fs');
Expand Down

0 comments on commit 160f45e

Please sign in to comment.