Skip to content

bootstrap.sh: invite collaborators to the student's own repo - #29

Closed
NickGuAI wants to merge 1 commit into
mainfrom
fix/bootstrap-explicit-repo
Closed

NickGuAI wants to merge 1 commit into
mainfrom
fix/bootstrap-explicit-repo

Conversation

@NickGuAI

@NickGuAI NickGuAI commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • With both origin (student repo) and upstream (course repo) remotes present, gh's {owner}/{repo} placeholder resolved to the course repo, so collaborator invitations went to the wrong repository while reporting "ok".
  • Invitations now target the student's repo by explicit owner/name taken from the origin remote URL. The private-repo check on origin uses the same explicit URL.

Test plan

  • bash -n, --help.
  • Ran the fixed script from a clone: private repo e2e-sync-bootstrapfix-20260918-145313 created, invitations for arielbenavi and thevoid12 landed on it with write permission, and the invitation count on this repository stayed unchanged.

🤖 Generated with Claude Code

…me, not via gh placeholders

With both origin and upstream remotes present, {owner}/{repo} resolved to the course repo.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@NickGuAI

Copy link
Copy Markdown
Owner Author

Folded into #27 so a single PR carries both fixes.

@NickGuAI NickGuAI closed this Sep 18, 2026
@NickGuAI
NickGuAI deleted the fix/bootstrap-explicit-repo branch September 18, 2026 15:11
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