Add team access copying feature for repositories#317
Open
ataylorme wants to merge 1 commit intobetter-auth:mainfrom
Open
Add team access copying feature for repositories#317ataylorme wants to merge 1 commit intobetter-auth:mainfrom
ataylorme wants to merge 1 commit intobetter-auth:mainfrom
Conversation
- New server actions in team-actions.ts: listRepoTeams, addTeamsToRepo, copyRepoTeamAccess (uses Octokit teams API) - Three new AI command palette tools: listRepoTeams (returns markdown table with linked team names + read/write/admin labels, API noise stripped), addTeamsToRepo, copyRepoTeamAccess - CopyTeamAccessPrompt component subscribes to repo:created mutation events and opens a dialog prompting the user to copy team access from an existing source repo to the newly created (target) repo - Mount CopyTeamAccessPrompt in app layout inside MutationEventProvider https://claude.ai/code/session_01EoNgSxjdMomvP6da9zgKrf
|
@claude is attempting to deploy a commit to the better-auth Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds functionality to copy team permissions from one repository to another within the same organization. It includes a new UI component that prompts users to copy team access when a new repository is created, along with server-side actions and AI tool integrations.
Key Changes
New Component:
CopyTeamAccessPrompt- A dialog component that appears after repository creation, allowing users to copy team permissions from an existing repository. Features include:Server Actions: New
team-actions.tsfile with three main functions:listRepoTeams()- Fetch teams with access to a repositoryaddTeamsToRepo()- Add multiple teams to multiple repositoriescopyRepoTeamAccess()- Copy all team permissions from source to target repositoriesAI Tools: Added three new tools to the AI command route:
listRepoTeams- List teams and their access levels for a repositoryaddTeamsToRepo- Add teams to repositories with specified permissionscopyRepoTeamAccess- Copy team access from source to target repositoriesIntegration: Updated app layout to include the
CopyTeamAccessPromptcomponent, which subscribes torepo:createdmutation eventsImplementation Details
Promise.allSettled()for robust error handlinghttps://claude.ai/code/session_01EoNgSxjdMomvP6da9zgKrf