GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): repository identity prefers the gh default remote by donnes · Pull Request #14291 · pingdotgg/t3code

fix(server): repository identity prefers the gh default remote #14291

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.

Sign up for GitHub

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

Closed
donnes wants to merge 3 commits into pingdotgg:main from codemode-studio:fix/gh-default-remote-identity

Uh oh!

There was an error while loading. Please reload this page.

Closed

fix(server): repository identity prefers the gh default remote #14291

Changes from 1 commit
Commits
Show all changes
3 commits
Select commit Hold shift + click to select a range
5e36fbe
fix(server): repository identity prefers the gh default remote
donnes Sep 29, 2026
ad658d8
chore(server): trim resolver comments
donnes Sep 29, 2026
bcf9123
fix(server): resolve gh OWNER/REPO default repositories
donnes Sep 29, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
chore(server): trim resolver comments
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@donnes @claude
donnes and claude committed Sep 30, 2026
commit ad658d88c47abf1f1c61c6fc9b77ba860e03b16f

There are no files selected for viewing

8 changes: 1 addition & 7 deletions 8 apps/server/src/project/RepositoryIdentityResolver.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ function pickPrimaryRemote(
remotes: ReadonlyMap<string, string>,
ghDefaultRemote: string | null,
): { readonly remoteName: string; readonly remoteUrl: string } | null {
// A fork that set its gh default to origin means it wants PRs resolved there,
// not against upstream.
for (const preferredRemoteName of [ghDefaultRemote, "upstream", "origin"]) {
if (!preferredRemoteName) continue;
const remoteUrl = remotes.get(preferredRemoteName);
Expand Down Expand Up @@ -143,11 +141,7 @@ const resolveRepositoryIdentityFromCacheKey = Effect.fn(
.run({ command: "git", args: ["-C", cacheKey, ...args], timeoutBehavior: "timedOutResult" })
.pipe(Effect.option);
const [remoteResult, ghDefaultResult] = yield* Effect.all(
[
git(["remote", "-v"]),
// Exits 1 when no remote is marked, which just means no preference.
git(["config", "--get-regexp", "^remote\\..*\\.gh-resolved$"]),
],
[git(["remote", "-v"]), git(["config", "--get-regexp", "^remote\\..*\\.gh-resolved$"])],
{ concurrency: "unbounded" },
);
if (remoteResult._tag === "None" || remoteResult.value.code !== 0) {
Expand Down
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.
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.