Skip to content

[v3-2-test] Prefer gh auth over GitHub tokens for Breeze (#66255)#67078

Merged
potiuk merged 1 commit into
apache:v3-2-testfrom
potiuk:backport-66255-to-v3-2-test
May 18, 2026
Merged

[v3-2-test] Prefer gh auth over GitHub tokens for Breeze (#66255)#67078
potiuk merged 1 commit into
apache:v3-2-testfrom
potiuk:backport-66255-to-v3-2-test

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented May 18, 2026

Backport of #66255 to v3-2-test.

Brings in run_gh_command / retrieve_github_token helpers so Breeze prefers a user's stored gh auth login credential over ambient GH_TOKEN / GITHUB_TOKEN env vars (with a retry against env tokens when the clean-env attempt fails).

Also fixes a pre-existing latent break on v3-2-test: the earlier backport #66776 referenced run_gh_command in dev/breeze/src/airflow_breeze/commands/workflow_commands.py but its prerequisite (this PR) had never been cherry-picked, leaving mypy-dev failing on v3-2-test. With this backport, the import resolves and mypy is green again.

Conflicts during cherry-pick:

  • dev/breeze/src/airflow_breeze/utils/github.py — kept both the existing dataclass, field import (still used by PRAssessment / Violation) and the new Mapping, Sequence import introduced by Prefer gh auth over GitHub tokens for Breeze #66255.
  • dev/breeze/src/airflow_breeze/commands/release_management_commands.py — left the airflow-ctl changelog block (_get_airflowctl_prs, generate_airflowctl_changelog, etc.) out, since that feature isn't on v3-2-test and Prefer gh auth over GitHub tokens for Breeze #66255 doesn't introduce it. Applied the retrieve_github_token(github_token) or "" line in generate_issue_content.
  • dev/breeze/doc/images/output_*.{svg,txt} — regenerated via breeze setup regenerate-command-images --force so they reflect v3-2-test's actual command set (not main's).

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.7)

Generated-by: Claude Code (Opus 4.7) following the guidelines

* Breeze: Prefer gh auth over GitHub tokens

* Respect dry run functionality

* Add Breeze GitHub helper edge-case tests

* Clarify Breeze GitHub token precedence

* Simplify release management GitHub token resolution

* Clarify GITHUB_TOKEN console print

(cherry picked from commit 7fef6c1)
@potiuk potiuk merged commit 40ee2c7 into apache:v3-2-test May 18, 2026
33 checks passed
@potiuk potiuk deleted the backport-66255-to-v3-2-test branch May 18, 2026 00:50
@vatsrahul1001 vatsrahul1001 added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label May 18, 2026
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.2.2 milestone May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants