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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user