Skip to content

Commit

Permalink
chore: Run on diffs only from PR branch (googleapis#8685)
Browse files Browse the repository at this point in the history
  • Loading branch information
lqiu96 authored Oct 25, 2022
1 parent e7742a0 commit f1f2c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .kokoro/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function generate_modified_modules_list() {
# Filter for java modules and get all the unique elements
# grep returns 1 (error code) and exits the pipeline if there is no match
# If there is no match, it will return true so the rest of the commands can run
modified_files=$(git diff --name-only "${KOKORO_GITHUB_PULL_REQUEST_COMMIT}...${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}")
modified_files=$(git diff --name-only "${KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH}...${KOKORO_GITHUB_PULL_REQUEST_COMMIT}")
printf "Modified files:\n%s\n" "${modified_files}"

modified_module_list=()
Expand Down

0 comments on commit f1f2c92

Please sign in to comment.