Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(settings): choose GitHub accounts by owner and repository #21582

Openjuliusmarmingewants to merge 7 commits intopull-request-14/credentials frompull-request-14/account-settingsopened View on GitHub

Showing 23 changed files with 22 additions and 16 deletions (loading 20).

x
0 of 23 viewed, 23 left
1 addition and 0 deletionsapps/mobile/src/features/pull-requests/PullRequestDiscussionScreen.tsxModified
View file
@@ -125,6 +125,7 @@
const resolveLabel = thread?.isResolved ? "Unresolve" : "Resolve";
return (
<PullRequestMarkdownRepository
+ detail={detail.data}
params={params}
value={detail.data?.provider === "github" ? detail.data.url : null}
12 additions and 3 deletionsapps/mobile/src/features/pull-requests/PullRequestMarkdown.tsxModified
View file
@@ -1,5 +1,6 @@
import { splitPullRequestBody } from "@t3tools/client-runtime/pull-request-markdown";
import type { ReactNode } from "react";
+import type { PullRequestDetail } from "@t3tools/contracts";
import { View } from "react-native";
import { useProject } from "../../state/entities";
import { pullRequestTarget, type PullRequestParams } from "./usePullRequestDiff";
@@ -31,6 +32,10 @@
export function PullRequestMarkdownRepository(props: {
readonly value: string | null;
readonly params: PullRequestParams;
+ readonly detail?:
+ | Pick<PullRequestDetail, "repository" | "workspaceRoot" | "url">
+ | null
+ | undefined;
readonly children: ReactNode;
}) {
const target = pullRequestTarget(props.params);