Skip to content

Commit

Permalink
change diff command
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiyan-sheng committed Jul 29, 2024
1 parent 150a38b commit 6594234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .buildkite/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6594234

Please sign in to comment.