Skip to content

Commit

Permalink
Merge pull request #6 from tamdilip/feature/update-issue-comment-body
Browse files Browse the repository at this point in the history
updated comment markdown body
  • Loading branch information
tamdilip authored Jul 3, 2020
2 parents ab7bdde + 2db638d commit 24d1231
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17461,7 +17461,10 @@ let getGroupedCommentMarkdown = async (markdownComments) => {
}, `${eslintIssuesBody}<ul id="eslint-issues-list">`);
}

return eslintIssuesBody + await getEmberTestBody() + await getAuditBody();
const emberTestBody = (!Config.DISABLE_TEST && await getEmberTestBody()) || '',
auditBody = (!Config.DISABLE_AUDIT && await getAuditBody()) || '';

return eslintIssuesBody + emberTestBody + auditBody;
};

/**
Expand Down
5 changes: 4 additions & 1 deletion src/markdown-processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ let getGroupedCommentMarkdown = async (markdownComments) => {
}, `${eslintIssuesBody}<ul id="eslint-issues-list">`);
}

return eslintIssuesBody + await getEmberTestBody() + await getAuditBody();
const emberTestBody = (!Config.DISABLE_TEST && await getEmberTestBody()) || '',
auditBody = (!Config.DISABLE_AUDIT && await getAuditBody()) || '';

return eslintIssuesBody + emberTestBody + auditBody;
};

/**
Expand Down

0 comments on commit 24d1231

Please sign in to comment.