This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new c78fd98418a fix --github-token logic bug (#63762)
c78fd98418a is described below

commit c78fd98418a81a3228be0568da33c631f8f64f22
Author: Aaron Chen <[email protected]>
AuthorDate: Mon Mar 16 17:45:54 2026 -0700

    fix --github-token logic bug (#63762)
---
 dev/breeze/src/airflow_breeze/commands/ci_image_commands.py         | 2 +-
 dev/breeze/src/airflow_breeze/commands/production_image_commands.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py 
b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
index 0a1f6395cb7..e9b34bfd164 100644
--- a/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/ci_image_commands.py
@@ -597,7 +597,7 @@ def load(
         )
         sys.exit(1)
 
-    if from_run or from_pr and not github_token:
+    if (from_run or from_pr) and not github_token:
         console_print(
             "[error]The parameter `--github-token` must be provided if 
`--from-run` or `--from-pr` is "
             "provided. Exiting.[/]"
diff --git 
a/dev/breeze/src/airflow_breeze/commands/production_image_commands.py 
b/dev/breeze/src/airflow_breeze/commands/production_image_commands.py
index fc46bfad23e..5d4add92f14 100644
--- a/dev/breeze/src/airflow_breeze/commands/production_image_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/production_image_commands.py
@@ -759,7 +759,7 @@ def load(
     perform_environment_checks()
     escaped_platform = platform.replace("/", "_")
 
-    if from_run or from_pr and not github_token:
+    if (from_run or from_pr) and not github_token:
         console_print(
             "[error]The parameter `--github-token` must be provided if 
`--from-run` or `--from-pr` is "
             "provided. Exiting.[/]"

Reply via email to