From efcaf24fd410bc8c4c9a920f4958347265b6f8ca Mon Sep 17 00:00:00 2001 From: sagamzu <52034287+sagamzu@users.noreply.github.com> Date: Tue, 4 Feb 2020 10:03:28 +0200 Subject: [PATCH] update log message in PR validation(#466) --- .script/utils/gitWrapper.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.script/utils/gitWrapper.ts b/.script/utils/gitWrapper.ts index db59c72b25..d212e0cae2 100644 --- a/.script/utils/gitWrapper.ts +++ b/.script/utils/gitWrapper.ts @@ -27,7 +27,9 @@ export async function GetDiffFiles(fileTypeSuffixes?: string[], filePathFolderPr return; } - console.log(`${filterChangedFiles.length} files changed in current PR after filter`); + let fileTypeSuffixesLogValue = typeof fileTypeSuffixes === "undefined" ? null : fileTypeSuffixes.toString(); + let filePathFolderPreffixesLogValue = typeof filePathFolderPreffixes === "undefined" ? null : filePathFolderPreffixes.toString(); + console.log(`${filterChangedFiles.length} files changed in current PR after filter. File Type Filter: ${fileTypeSuffixesLogValue}, File path Filter: ${filePathFolderPreffixesLogValue}`); return filterChangedFiles; }