From 65942343480e00a65895b3bb04c9547916a538eb Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Mon, 29 Jul 2024 09:36:29 -0600 Subject: [PATCH] change diff command --- .buildkite/pipeline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.py b/.buildkite/pipeline.py index 95530b89628..63eb5bdf890 100755 --- a/.buildkite/pipeline.py +++ b/.buildkite/pipeline.py @@ -143,8 +143,8 @@ def __init__(self): self.files: list[str] = [] def get_pr_changeset(self) -> list[str]: - base_branch = os.getenv("BUILDKITE_PULL_REQUEST_BASE_BRANCH", "main") - diff_command = ["git", "diff", "--name-only", "{}...HEAD".format(base_branch)] + hash = ["git", "rev-parse", "8.12"] + diff_command = ["git", "diff", "--name-only", "{}...HEAD".format(hash)] result = subprocess.run(diff_command, stdout=subprocess.PIPE) if result.returncode == 0: self.files = result.stdout.decode().splitlines()