Simpler list_changed_files in PR using plain git command
This is adapted from
@@ -49,7 +49,7 @@ function pr_only_contains() {
# List changed files in the current PR.
# This is implemented as a function so it can be mocked in unit tests.
function list_changed_files() {
- /workspace/githubhelper -list-changed-files -github-token /etc/repoview-token/token
+ git --no-pager diff --name-only ${PULL_BASE_SHA}..${PULL_SHA}
}
# Initialize flags and context for presubmit tests:
