-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[FIX] sanitize GitHub repo names to prevent space-to-dash mismatch #1338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issue found across 1 file
Prompt for AI agents (all 1 issues)
Understand the root cause of the following 1 issues and fix them.
<file name="src/ipc/handlers/github_handlers.ts">
<violation number="1" location="src/ipc/handlers/github_handlers.ts:495">
Remove unused repo from args type; it’s not used by handleCreateRepo and can confuse callers.</violation>
</file>
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Ask questions if you need clarification on any suggestion
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
fbcc2fb to
7d621f8
Compare
|
thanks for the PR. this fix feels a bit heavy-handed as it's actually renaming the folder as part of the git sync (which seems quite surprising from a user perspective). I don't think we need to rename the app folder (IIUC) to fix this issue. Also, let's add an e2e test https://github.com/dyad-sh/dyad/blob/main/CONTRIBUTING.md#e2e-tests - probably add a test case here: https://github.com/dyad-sh/dyad/blob/main/e2e-tests/github.spec.ts |
3b4b210 to
51b4023
Compare
51b4023 to
56ce6fe
Compare
@wwwillchen Got rid of folder renaming, plus added an e2e test. |
Fixes issue where GitHub automatically converts spaces to dashes in repo names but Dyad continued referencing the original names with spaces, causing connection and push failures by introducing a sanitization step for repo names.
56ce6fe to
c041ba5
Compare
Fixes issue where GitHub automatically converts spaces to dashes in repo names but Dyad continued referencing the original names with spaces, causing connection and push failures.
Summary by cubic
Sanitizes GitHub repo and local app folder names (spaces → dashes) to match GitHub behavior. Fixes failures when creating, connecting, or pushing to repos with spaces.