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-steward.git
The following commit(s) were added to refs/heads/main by this push:
new b48d4e8 fix(.asf.yaml): drop scaffolded environments block (#105)
b48d4e8 is described below
commit b48d4e8b503e03e27ea59392893bd553b0a02245
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun May 10 18:38:17 2026 +0200
fix(.asf.yaml): drop scaffolded environments block (#105)
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