From c86c422f833bac08ea809642bac7ce4c8c0b9a61 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 3 Dec 2019 14:00:36 -0600 Subject: [PATCH 1/2] Adding it --- lib/linter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index aba48c1a..597cf663 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -2008,7 +2008,7 @@ BuildFileList() ##################################################################### # Switch codebase back to master to get a list of all files changed # ##################################################################### - SWITCH_CMD=$(cd "$GITHUB_WORKSPACE" || exit; git checkout master; git fetch 2>&1) + SWITCH_CMD=$(cd "$GITHUB_WORKSPACE" || exit; git checkout master; git pull; git fetch 2>&1) ####################### # Load the error code # From 90502fda223d9c000ffd123427606335354903a6 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Tue, 3 Dec 2019 14:00:38 -0600 Subject: [PATCH 2/2] Adding it --- lib/linter.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/linter.sh b/lib/linter.sh index 597cf663..70099afa 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -2025,6 +2025,11 @@ BuildFileList() exit 1 fi + ######### + # Print # + ######### + echo "Generating Diff with:[git diff --name-only 'master..$GITHUB_SHA' --diff-filter=d]" + ################################################ # Get the Array of files changed in the comits # ################################################