fix(server): link thread PRs without an open client (#10101)
Co-authored-by: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
5fa35d2116
commit
223ff4490f
50 files changed
+2308
-1485
No files matched your search
@@ -11,11 +11,9 @@ export function resolveThreadReferenceCopyTarget(input: {
|
||||
/** Undefined means no PR panel; null means its URL is not available yet. */
|
||||
readonly openPanelPullRequestUrl?: string | null | undefined;
|
||||
readonly linkedPullRequestUrl?: string | null;
|
||||
readonly detectedPullRequestUrl?: string | null;
|
||||
}): ThreadReferenceCopyTarget | null {
|
||||
if (input.openPanelPullRequestUrl === null) return null;
|
||||
const pullRequestUrl =
|
||||
input.openPanelPullRequestUrl ?? input.linkedPullRequestUrl ?? input.detectedPullRequestUrl;
|
||||
const pullRequestUrl = input.openPanelPullRequestUrl ?? input.linkedPullRequestUrl;
|
||||
return pullRequestUrl
|
||||
? {
|
||||
kind: "pull-request",
|
||||
|
||||
Reference in new issue
Block a user