-
v0.6.29 Stable
released this
2026-07-28 14:58:40 +00:00 | 18 commits to trunk since this releaseFixed
- Never evict every team member when
spec.membersis omitted.
ForgejoTeam.spec.membersis+optionalwithomitempty, so a CR that leaves
the field out decodes toMembers == nil— a legal shape meaning "I am not
managing membership". The removal sweep treated that nil as an authoritative
empty desired set and calledRemoveTeamMemberfor every existing member,
silently evicting all users from the org team and revoking the repo access it
granted them. Nothing surfaced the damage: each removal logged as a success and
the CR still wentReady=True. A nilspec.membersnow skips the sweep
entirely; an explicitly-empty list ([]) is still a real assertion of "no
members" and removes everyone, so authoritative membership is unchanged for
every CR that actually sets the field.
Included changes (v0.6.28 -> v0.6.29)
68890d07b40ffix(team): omitted spec.members must not evict every team member
Downloads
-
Source code (ZIP)
2 downloads
-
Source code (TAR.GZ)
2 downloads
- Never evict every team member when