From 6cd36c6af579c79a9220299c790c8e44691fe96f Mon Sep 17 00:00:00 2001 From: Andie Date: Sun, 22 Sep 2024 11:07:37 +0700 Subject: [PATCH] Fix typo and improve variable consistency --- latest_changes/main.py | 2 +- latest_changes/model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/latest_changes/main.py b/latest_changes/main.py index 85a52e6..1354b05 100644 --- a/latest_changes/main.py +++ b/latest_changes/main.py @@ -229,7 +229,7 @@ def main() -> None: ) number_of_trials = 10 logging.info(f"Number of trials (for race conditions): {number_of_trials}") - for trial in range(10): + for trial in range(number_of_trials): logging.info(f"Running trial: {trial}") logging.info( "Pulling the latest changes, including the latest merged PR (this one)" diff --git a/latest_changes/model.py b/latest_changes/model.py index dbf3039..c2a451a 100644 --- a/latest_changes/model.py +++ b/latest_changes/model.py @@ -3214,7 +3214,7 @@ class WorkflowRun(BaseModel): head_branch: str = Field(..., example='master') head_sha: str = Field( ..., - description='The SHA of the head commit that points to the version of the worflow being run.', + description='The SHA of the head commit that points to the version of the workflow being run.', example='009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d', ) run_number: int = Field(