fix(mcp): parseGitRemote accepts trailing-slash GitHub URLs - #1887
Conversation
Strip trailing slashes before matching origin remotes so local branch metadata works with common https://github.com/owner/repo/ remotes. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-06-30 19:23:57 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 4 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
originremotes before parsing sohttps://github.com/owner/repo/resolves correctly in MCP local-branch metadataTest plan
npx vitest run test/unit/local-branch.test.ts -t "parses remotes"