amoghrajesh commented on code in PR #63985:
URL: https://github.com/apache/airflow/pull/63985#discussion_r2965471218
##########
scripts/ci/prek/check_execution_api_versions.py:
##########
@@ -34,16 +34,24 @@
DATAMODELS_PREFIX =
"airflow-core/src/airflow/api_fastapi/execution_api/datamodels/"
VERSIONS_PREFIX =
"airflow-core/src/airflow/api_fastapi/execution_api/versions/"
-TARGET_BRANCH = "main"
+
+
+def get_target_branch() -> str:
+ """Branch to compare against. GITHUB_BASE_REF for PRs, DEFAULT_BRANCH in
CI, else main."""
+ print("The target branch for schema comparison is determined in the
following order of precedence:")
+ print(os.environ.get("GITHUB_BASE_REF"))
+ print(os.environ.get("DEFAULT_BRANCH"))
Review Comment:
Just for debugging, remove before merge.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]