Skip to content

feat(teams): add team create, update, and membership management - #268

Merged
iamfj merged 1 commit into
nextfrom
issue-142
Jul 4, 2026
Merged

feat(teams): add team create, update, and membership management#268
iamfj merged 1 commit into
nextfrom
issue-142

Conversation

@iamfj

@iamfj iamfj commented Jul 3, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Adds team management to the teams command group: create, update, members, add-member, and remove-member subcommands. Team/user IDs are resolved once in the command layer, and membership listing paginates so all members are fetched regardless of team size. Estimation, cycle, and triage settings are exposed as explicit true|false flags so scripts can set or unset them unambiguously. New GraphQL mutations (CreateTeam, UpdateTeam, AddTeamMember, RemoveTeamMember) and a GetTeamMemberships query back the service layer, with unit, command, and integration test coverage.

Closes #142

Type of change

  • Bug fix
  • New feature
  • Refactor (no behavior change)
  • Documentation
  • Tests
  • Build / CI

Checklist

  • npm run check:ci passes (lint + format)
  • npx tsc --noEmit passes (type check)
  • npm test passes (unit tests)
  • New code has tests (happy path + primary error case)
  • Commit messages follow Conventional Commits

Testing

npm run check:ci, npx tsc --noEmit, and npm test (884 tests) all pass locally.

Notes for reviewers

remove-member resolves the membership id from the team + user pair by paginating memberships, since Linear deletes memberships by their own id.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

✅ knip — no dead code

No unused files, exports, types, or dependencies detected.

@iamfj
iamfj force-pushed the issue-142 branch 2 times, most recently from 244c552 to 706d88c Compare July 4, 2026 16:49
Add `teams create`, `teams update`, `teams members`, `teams add-member`,
and `teams remove-member` subcommands with resolver-backed team/user ID
resolution and paginated membership fetching. Estimation, cycle, and
triage settings are exposed as explicit true|false flags.

Boolean flags accept only true|false (not 1/0/yes/no) so scripts can set
or unset settings unambiguously, and numeric flags reject blank input,
which Number() would otherwise coerce to 0.

Closes #142
@iamfj
iamfj merged commit cb3be46 into next Jul 4, 2026
12 checks passed
@iamfj
iamfj deleted the issue-142 branch July 4, 2026 17:05
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.

feat(teams): add create/update and membership management commands

1 participant