You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-accept GitHub invitation after dataset creation #43
Users are added as collaborators when a dataset is created, but must manually accept the GitHub invitation in their browser before they can push. This adds friction.
Solution
Auto-accept the invitation via CLI using GitHub API:
gh api /user/repository_invitations # List pending
gh api --method PATCH /user/repository_invitations/{id} # Accept
Validated Approach
See .context/validated_workflows.md section 7 (GitHub Invitation Auto-Accept).
# Combined: find and accept invitation for a specific repo
INVITATION_ID=$(gh api /user/repository_invitations --jq '.[] | select(.repository.full_name == "nemarDatasets/<repo>") | .id')
gh api --method PATCH /user/repository_invitations/$INVITATION_ID
Gotchas
gh CLI must be authenticated as the invited user
macOS keyring not accessible via SSH; use token-based auth or test locally
Fallback: prompt user to accept manually if auto-accept fails
Implementation
After dataset creation API returns, list invitations for current user
Activity
feat: auto-accept GitHub invitation after dataset creation
feat: auto-accept GitHub invitation after dataset creation (#49)