Accept merged fallback PRs during branch lookup (#5908)

Ensure that when a visible fallback PR has been merged (e.g., outside
Orca with a deleted head branch), it is still accepted and refreshed by
branch lookup instead of being discarded as an implicit merged PR.

* Add `acceptMergedFallbackPR` option to GitHub branch lookups
* Enable this option during manual and background refreshes of fallback PRs
* Plumb the new option through preload APIs, IPC handlers, and RPC protocols
This commit is contained in:
Jinjing
2026-06-20 03:30:18 -07:00
committed by GitHub
parent 1419193bea
commit 97dc6d63e3
16 changed files with 253 additions and 25 deletions
+4 -2
View File
@@ -52,7 +52,8 @@ const SlugAssignableUsers = SlugRepo.extend({
const PrForBranch = RepoSelector.extend({
branch: requiredString('Missing branch'),
linkedPRNumber: z.number().int().positive().nullable().optional(),
fallbackPRNumber: z.number().int().positive().nullable().optional()
fallbackPRNumber: z.number().int().positive().nullable().optional(),
acceptMergedFallbackPR: z.boolean().optional()
})
const Issue = RepoSelector.extend({
@@ -359,7 +360,8 @@ export const GITHUB_METHODS: RpcMethod[] = [
params.repo,
params.branch,
params.linkedPRNumber,
params.fallbackPRNumber
params.fallbackPRNumber,
params.acceptMergedFallbackPR
)
}),
defineMethod({