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(git): the commit button stops showing the wrong action by wSedlacek · Pull Request #32104 · pingdotgg/t3code

fix(git): the commit button stops showing the wrong action #32104

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
wSedlacek wants to merge 9 commits into pingdotgg:main from wSedlacek:t3/explain-commit-push-pr-button-state
+1,707 −91
Closed

fix(git): the commit button stops showing the wrong action #32104

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit Hold shift + click to select a range
82580b5
fix(git): the commit button shows the right action and waits for the …
wSedlacek Nov 6, 2026
cbaa176
fix(git): queued commits wait for background work and stay on their b…
wSedlacek Nov 7, 2026
d736e5b
fix(server): post-turn remote refresh survives overlap and divergence…
wSedlacek Nov 8, 2026
9c20921
Merge remote-tracking branch 'github/main' into t3/explain-commit-pus…
maria-rcks Nov 10, 2026
3168d12
test(web): mock the git action queue's imports in the chat git status…
maria-rcks Nov 10, 2026
d38be08
fix(clients): closed and merged PRs no longer offer Create PR
wSedlacek Nov 11, 2026
ba266b1
Merge remote-tracking branch 'origin/main' into t3/explain-commit-pus…
wSedlacek Nov 11, 2026
17d395b
Merge remote-tracking branch 'github/main' into t3/explain-commit-pus…
maria-rcks Nov 11, 2026
431ca4d
fix(mobile): open linked closed and merged pull requests
maria-rcks Nov 11, 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
Merge remote-tracking branch 'github/main' into t3/explain-commit-pus…
…h-pr-button-state

# Conflicts:
#	apps/server/src/git/GitManager.test.ts
  • Loading branch information

Uh oh!

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

@maria-rcks
maria-rcks committed Nov 10, 2026
commit 9c20921f2cc69ec701e70e094949398a80fba503

There are no files selected for viewing

68 changes: 68 additions & 0 deletions 68 apps/server/src/git/GitManager.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4635,6 +4635,74 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
}),
);

it.effect("commit_push_pr publishes the default branch to the push remote's fork", () =>
Effect.gen(function* () {
const repoDir = yield* makeTempDir("t3code-git-manager-");
yield* initRepo(repoDir);
const originDir = yield* createBareRemote();
const forkDir = yield* createBareRemote();
yield* runGit(repoDir, ["remote", "add", "origin", originDir]);
yield* runGit(repoDir, ["push", "origin", "main"]);
yield* runGit(repoDir, ["remote", "add", "fork", forkDir]);
yield* runGit(repoDir, ["push", "fork", "main"]);
yield* runGit(repoDir, ["config", "remote.pushDefault", "fork"]);
yield* configureVisibleRemoteUrlWithLocalRewrite(
repoDir,
"origin",
"[email protected]:pingdotgg/codething-mvp.git",
originDir,
);
yield* configureVisibleRemoteUrlWithLocalRewrite(
repoDir,
"fork",
"[email protected]:octocat/codething-mvp.git",
forkDir,
);
const readOriginMain = runGit(repoDir, ["ls-remote", "origin", "refs/heads/main"]).pipe(
Effect.map((output) => output.stdout),
);
const originBefore = yield* readOriginMain;
NodeFS.writeFileSync(NodePath.join(repoDir, "change.txt"), "change\n");

const { manager, providerCalls } = yield* makeManager({
providerScenario: {
defaultBranch: "main",
prListSequenceByHeadSelector: {
"octocat:main": [
[],
[
{
number: 189,
title: "Contribute from main",
url: "https://github.com/pingdotgg/codething-mvp/pull/189",
baseRefName: "main",
headRefName: "main",
state: "open",
isCrossRepository: true,
headRepositoryNameWithOwner: "octocat/codething-mvp",
headRepositoryOwnerLogin: "octocat",
},
],
],
},
},
});

const result = yield* runStackedAction(manager, {
cwd: repoDir,
action: "commit_push_pr",
});

expect(result.pr.status).toBe("created");
expect(yield* readOriginMain).toBe(originBefore);
expect(
created(providerCalls).some(
(call) => call.baseRefName === "main" && call.headSelector === "octocat:main",
),
).toBe(true);
}),
);

it.effect("rejects push/pr actions from detached HEAD", () =>
Effect.gen(function* () {
const repoDir = yield* makeTempDir("t3code-git-manager-");
Expand Down
1 change: 0 additions & 1 deletion 1 apps/server/src/vcs/VcsStatusBroadcaster.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import * as Path from "effect/Path";
import * as Queue from "effect/Queue";
import * as Scope from "effect/Scope";
import * as Scheduler from "effect/Scheduler";
import * as Queue from "effect/Queue";
import * as Stream from "effect/Stream";
import * as TestClock from "effect/testing/TestClock";
import * as Tracer from "effect/Tracer";
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
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 01402792 — 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.