leeyspaul commented on code in PR #66255:
URL: https://github.com/apache/airflow/pull/66255#discussion_r3182865563


##########
dev/breeze/src/airflow_breeze/commands/release_management_commands.py:
##########
@@ -3062,17 +3054,7 @@ def generate_issue_content_core(
 
 def _get_github_token(github_token: str) -> str:
     """Return github_token as-is, or fall back to ``gh auth token``."""
-    if github_token:
-        return github_token
-    result = run_command(
-        ["gh", "auth", "token"],
-        capture_output=True,
-        text=True,
-        check=False,
-    )
-    if result.returncode == 0:
-        return result.stdout.strip()
-    return github_token
+    return retrieve_github_token(github_token) or github_token

Review Comment:
   Updated this to match the suggested call-site shape directly.



-- 
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]

Reply via email to