This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch fix/asf-yaml-environments-prevent-self-review in repository https://gitbox.apache.org/repos/asf/airflow-steward.git
commit d9818be673aea3f5e46e680ad6276caba4619f7e Author: Jarek Potiuk <[email protected]> AuthorDate: Sun May 10 18:37:37 2026 +0200 fix(.asf.yaml): drop scaffolded environments block asfyaml's environment handler passes `prevent_self_review` as a kwarg to PyGithub's `Repository.create_environment()`, but the PyGithub version asfyaml ships does not accept that kwarg: Repository.create_environment() got an unexpected keyword argument 'prevent_self_review' The `environments:` block was scaffolding for an eventual ATR release workflow that does not exist yet. Removing it unblocks asfyaml processing immediately. Re-add once the asfyaml / PyGithub interaction is fixed upstream and a release workflow exists that needs the environment. Generated-by: Claude Code (Claude Opus 4.7) --- .asf.yaml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.asf.yaml b/.asf.yaml index 8613e43..830c643 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -89,18 +89,16 @@ github: copilot_code_review: enabled: false - # Deployment environments — created here so an eventual release - # workflow can target them without touching the GitHub UI. The - # `atr-release` environment scaffolds release publishing through - # ASF Trusted Releases (ATR); the protected-branches policy - # ensures only `main` (and any future protected release branches) - # can deploy. Required reviewers can be added later if the - # release flow needs PMC sign-off at deploy time. - environments: - atr-release: - wait_timer: 0 - deployment_branch_policy: - protected_branches: true + # No `environments:` block by design — asfyaml's environment + # handler currently passes `prevent_self_review` as a kwarg to + # `Repository.create_environment()`, which the PyGithub version + # asfyaml ships does not accept ("Repository.create_environment() + # got an unexpected keyword argument 'prevent_self_review'"). The + # block is harmless to omit while no release workflow targets a + # deployment environment; re-add (with the `atr-release` + # protected-branches scaffold for ASF Trusted Releases) once the + # asfyaml / PyGithub interaction is fixed upstream and a release + # workflow exists that needs the environment. # No `protected_branches:` block by design — branch protections are # configured directly in GitHub for now. Add here when the project's
