Skip to content

Commit

Permalink
Docs: prettify modified_files as markdown list in pr
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Apr 18, 2021
1 parent ecce71a commit 6397f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const src = danger.git.fileMatch('src/*');
const tests = danger.git.fileMatch('tests/*');
const system = danger.git.fileMatch('.*', '.*/**', 'LICENSE.md', 'package-lock.json', 'package.json');
const isOwner = danger.github.pr.user.login === danger.github.thisPR.owner;
const modifiedList = danger.git.modified_files.join('\n - ');
const modifiedList = danger.git.modified_files.join('\n- ');

export default async function () {
message(`Changed Files in this PR: \n - ${modifiedList}`);
message(`Changed Files in this PR: \n- ${modifiedList}`);

if (system.modified && !isOwner) {
const files = system.getKeyedPaths().modified;
Expand Down

0 comments on commit 6397f60

Please sign in to comment.