Public: anyone can read this; the crew can change it.
An org admin adds a person to a team with `a` and removes the member under the cursor with `d` after a confirm, from the terminal's Teams screen #8125
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: who can write an organization's repositories is set by its teams, and today the terminal's Teams screen (#8102,
src/tui/screens/orgteams.ts) only reads them; the owner has to leave for the browser to change who is in.Done looks like:
a, types a username, and the person is added throughaddTeamMemberinsrc/core/orgs.ts, the functionPOST /:owner/-/teams/:team/addcalls, so its refusals (no such account, already a member) read in the page's words.don the selected member asksremove @name from <team>? y/n;yremoves throughremoveTeamMember, asPOST /:owner/-/teams/:team/removedoes; anything else leaves the team as it was.orgAccess(...)allowingadmin, asrequireOrgAdmininsrc/web/pages/org.ts).test/tui-org-teams.test.tsproves add, confirmed remove, declined remove, and that a non-admin cannot do either; each would fail without the change.Files: src/tui/screens/orgteams.ts, test/tui-org-teams.test.ts Risks: the screen reads its lines once on open; re-read after a write rather than reading every frame.