Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Remove team members who aren't in the config - #282

Merged
localden merged 2 commits into
mainfrom
sync-team-members
Dec 1, 2026
Merged

localden merged 2 commits into
mainfrom
sync-team-members

Conversation

@localden

@localden localden commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Deploys now make every team in roles.ts match users.ts exactly. Pulumi manages only the memberships it created, so it never sees someone added to a team in GitHub's UI. A new step after make up removes them, and cancels team invitations that aren't in the config.

Safeguards:

  • It stops before removing anyone if more than 20 removals are due.
  • It skips a team that lacks someone users.ts declares, because that person may have renamed their account.
  • It fails if GitHub returns no members, or if a removal fails.
  • --apply runs only in the deploy of main. Without it, npm run sync-team-members only lists.

It uses the deploy App's existing permissions. Two existing memberships, in typescript-sdk-auth and sdk-maintainers, are now declared, so that they stay.


Generated by Claude Code

@localden
localden requested a review from a team as a code owner December 1, 2026 21:41
@localden localden self-assigned this Dec 1, 2026
@localden
localden merged commit 6c712bd into main Dec 1, 2026
2 checks passed
@localden
localden deleted the sync-team-members branch December 1, 2026 22:31

This branch was successfully deployed

1 active deployment
preview — 309b6698 Deployed Dec 1, 2026 by localden via Preview Changes #498
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant