Commit Graph
107 Commits
Author SHA1 Message Date
KayleeandNeil 528a887ab5 Target the fork branch from fork-PR worktrees (#4394)
Creating a worktree from a cross-repository (fork) PR previously named the
local branch with the maintainer's branch prefix (e.g. `me/866`) and pushed to
origin instead of the contributor's fork, so maintainer edits never reached the
PR. Fork PRs now adopt the contributor's branch name (matching same-repo PRs)
and resolve a fork push target, with a non-blocking warning when the PR
disables maintainer edits and an indicator showing where a push will land.

- pr-start-point: return branchNameOverride/headSha/maintainerCanModify for
  cross-repo PRs (previously only same-repo PRs received these)
- github client: surface maintainer_can_modify alongside the fork push target
- composer: warn (but still allow) when "Allow edits from maintainers" is off
- source control: show the fork push target (owner:branch) before pushing
- extract fork-remote cleanup and setup into dedicated, unit-tested modules

Adds unit suites for the cleanup multi-fork matrix, fork-remote setup,
push-target resolution, the warning decision, and the push-target label.

Note: pre-commit react-doctor hook bypassed — its warnings in useComposerState
are pre-existing (identical count on base) and not enforced by CI.

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-06-07 19:51:36 -07:00
Jinwoo HongandOrca 3ac29ab251 Fix git probe fanout during concurrent refreshes (#4670)
Co-authored-by: Orca <help@stably.ai>
2026-06-04 17:59:09 -07:00
Trevin ChowandNeil abfe9bd329 Default repo avatars to the GitHub upstream owner and flag forks (#4522)
* Default repo avatars to the GitHub upstream owner and flag forks

Make the GitHub owner avatar the default repo icon and surface it as the
primary choice in the icon picker (the "Image" tab becomes "Avatar",
moves first, and opens by default). For forks, resolve the upstream/
parent owner so the avatar reflects the source repo instead of the
personal fork, and show a fork indicator (GitFork glyph + "Fork of
owner/repo" tooltip) next to the repo in the sidebar and settings.

Fork detection prefers the offline `upstream` remote, falling back to a
`gh repo view --json isFork,parent` lookup; the resolved upstream is
stored on the repo. Existing repos self-correct via a one-time startup
backfill (local repos) and a lazy backfill when their icon settings open
(SSH repos); new repos resolve at add-time. Reset now restores the
default (re-detecting the upstream) instead of clearing to the Folder
icon.

* Harden repo upstream avatar handling

---------

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-06-02 20:55:35 -07:00
Brennan BensonandOrca e86d094f4d Fix PR conflict file details on legacy Git (#4441)
Co-authored-by: Orca <help@stably.ai>
2026-06-01 22:07:24 -07:00
Jinjing 472a2a95be fix: address review findings (#4328) 2026-05-31 16:42:19 -07:00
Jinjing c5ba94ce96 fix: address review findings (#4327) 2026-05-31 16:17:30 -07:00
Neil 08ee240b7c fix: clear stale pr refresh backoff entries (#4207) 2026-05-31 08:17:54 -07:00
Neil 92b05098db fix: bound github project owner caches (#4164) 2026-05-31 06:38:25 -07:00
Neil 09d2227a04 fix: bound github merge metadata cache (#4154) 2026-05-31 06:12:38 -07:00
Neil 9d66aceaa6 fix: clear visible pr refresh state on window destroy (#4148) 2026-05-31 06:04:54 -07:00
Neil 81e850d0af fix: prune github owner repo cache (#4081) 2026-05-31 03:40:28 -07:00
Jinwoo-HandOrca 1c1677eaad Hydrate task PR merge methods
Co-authored-by: Orca <help@stably.ai>
2026-05-31 02:43:16 -07:00
Neil e8b859118f Use GitHub merge method metadata for PR actions 2026-05-31 02:43:16 -07:00
Neil c3c265d926 fix: parse github https remotes with auth (#4014) 2026-05-31 01:20:15 -07:00
Jinjing f0308a86e6 Fix PR workspace branch checkout (#4003) 2026-05-31 00:06:57 -07:00
Jinjing a79ea461c3 fix: address review findings (#3981) 2026-05-30 21:29:09 -07:00
Jinjing 1d9aefe021 fix: reopen pull requests with gh pr (#3980) 2026-05-30 21:14:08 -07:00
Jinjing 7686eaba2d fix: address review findings (#3968) 2026-05-30 18:33:31 -07:00
Jinjing 9ca42f5582 Create GitHub issues with markdown and metadata (#3947)
* Create GitHub issues with markdown and metadata

- Add a reusable rich markdown composer for GitHub issue bodies and comments
- Let new GitHub issues include selected labels and assignees through IPC/RPC
- Preserve created issue metadata in the task list and cover the new API path with tests

* fix: address review findings
2026-05-30 18:25:31 -07:00
Neil ef1324d6f1 Detect GitHub URL-style SSH remotes (#3605) 2026-05-30 13:25:48 -07:00
Neil 181741d769 chore: enforce exhaustive switch handling 2026-05-30 13:18:12 -07:00
ef74c713ae Fix PR lookup for tracked upstream branches (#3484)
* Fix PR lookup for tracked upstream branches

* fix: handle upstream PR lookup over SSH

Co-authored-by: Orca <help@stably.ai>

---------

Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
2026-05-30 14:33:23 -04:00
Neil c99eb29bb0 chore: remove unused code 2026-05-30 11:05:58 -07:00
7242b41698 Fix GitHub merge queue PR status (#2856)
* Fix GitHub merge queue PR status

* Fix merge queue GraphQL field encoding

Co-authored-by: Orca <help@stably.ai>

---------

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
2026-05-29 20:22:41 -04:00
Jinwoo HongandOrca 153fd863c6 Refresh GitHub issues after creation (#3018)
Implements the no-cache GitHub issue list refresh path described in docs/refresh-github-issues-after-create.md.

Co-authored-by: Orca <help@stably.ai>
2026-05-28 21:14:58 -04:00
Brennan BensonandOrca a15b13b02d Customize Source Control AI prompts (#2916)
Co-authored-by: Orca <help@stably.ai>
2026-05-27 16:03:36 -07:00
Brennan BensonandOrca 0d78e807dd fix: support SSH hosted review PR creation (#2628)
Co-authored-by: Orca <help@stably.ai>
2026-05-22 13:27:06 -07:00
Jinwoo HongandOrca b1973657ea Add mobile Tasks parity (#2452)
Co-authored-by: Orca <help@stably.ai>
2026-05-21 20:26:07 -07:00
Jinjing e9d5bf2a05 fix: address review findings (#2576) 2026-05-21 17:57:23 -07:00
Jinjing c949af129a fix: preserve fallback PR cache on refresh miss (#2566) 2026-05-21 16:06:41 -07:00
Jinwoo HongandOrca a69ce28e1d Quiet expected SSH GitHub task skips (#2565)
Co-authored-by: Orca <help@stably.ai>
2026-05-21 16:01:29 -07:00
Jinjing c6043a6702 Show GitHub issue assignees in the task list (#2557) 2026-05-21 13:30:41 -07:00
Jinjing d4e9c22f8b Fix worktree creation for selected existing branches (#2543)
* fix: address review findings

* fix: address CI failures
2026-05-21 12:25:32 -07:00
Jinjing fca5f498db Keep PR refreshes anchored to cached review numbers (#2541)
- Use fallback PR numbers after branch lookup misses, including detached HEAD
- Preserve review cards for forked or deleted-head PRs across manual refreshes
- Clear stale GitHub PR cache entries when unlinking worktree review metadata
2026-05-21 12:12:10 -07:00
Jinwoo HongandOrca fbf53aa4cc Prevent unscoped GitHub task queries for SSH repos (#2506)
* fix: prevent unscoped ssh github task queries

Co-authored-by: Orca <help@stably.ai>

* test: update worktree card context menu mock

Co-authored-by: Orca <help@stably.ai>

---------

Co-authored-by: Orca <help@stably.ai>
2026-05-21 04:23:59 -04:00
Jinwoo HongandOrca 8cf39f3a2c Fix stale GitHub status cache updates (#2483)
Co-authored-by: Orca <help@stably.ai>
2026-05-20 23:38:32 -07:00
Jinjing 671f33a8c7 fix: address review findings (#2470) 2026-05-20 19:12:40 -07:00
Jinjing 38ccb999d4 fix: render PR review comments inline (#2382) 2026-05-19 18:24:51 -07:00
Jinjing f79c03e3df fix: address review findings (#2381) 2026-05-19 18:14:49 -07:00
Jinjing 8321ea2e03 fix: address review findings (#2377) 2026-05-19 17:50:04 -07:00
Jinjing 9d5f27fa3c Fix PR check refresh and terminal tombstone test (#2375)
* Prefetch task PR checks by head SHA

* Fix terminal host tombstone cap test
2026-05-19 17:42:30 -07:00
Jinwoo HongandOrca fb4069be52 Improve GitHub PR status refresh freshness (#1716)
Co-authored-by: Orca <help@stably.ai>
2026-05-19 15:39:44 -07:00
Jinjing 9bbfb04a09 fix: address review findings (#2339) 2026-05-19 13:03:47 -07:00
63b11f11a4 Add PR automation CLI and mobile browser streaming (#2328)
* Squashed commits

- WIP: uncommitted changes before rebase

- ci

- Show inline PR check details in task drawer

- Add a Checks tab that opens from the PR checks cell and expands runs inline
- Fetch check output, annotations, and workflow job steps through IPC/RPC
- Improve markdown/comment wrapping so long PR content stays within the drawer

* Use app-styled confirmations for PR actions (#2324)

Co-authored-by: Orca <help@stably.ai>

* fix: pr-bug-scan validated finding from #2274 (#2296)

Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>

---------

Co-authored-by: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: buf0-bot[bot] <252831055+buf0-bot[bot]@users.noreply.github.com>
Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>
2026-05-19 11:36:24 -07:00
Jinjing a6ca940d0f Show GitHub PR reviewer names in task rows (#2309) 2026-05-18 23:06:54 -07:00
Jinjing 4ca26db06a fix: address PR checks fallback (#2303) 2026-05-18 21:09:15 -07:00
Jinjing e0a5aa24d4 fix: address review findings (#2256) 2026-05-18 11:59:43 -07:00
AnweshandNeil 95577ea9a0 Fix start-from PR failures for fork-backed PRs (#2233)
* Fix start-from PR failures for some fork PRs

* fix: limit PR fallback fetches to missing refs

---------

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-05-18 00:36:34 -07:00
Jinjing c7ddfd17d1 Improve git remote selection (#2207) 2026-05-17 21:00:15 -07:00
Jinjing e4a794ec68 fix: address review findings (#2206) 2026-05-17 20:15:05 -07:00