Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(projects): Git actions and pull requests per tracked repository #35924

Closedjuliusmarmingewants to merge 1 commit intot3/multi-repo-2-per-repo-review fromrefs/pull/35924/headopened View on GitHub

Showing 25 changed files with 59 additions and 29 deletions (loading 23).

x
0 of 25 viewed, 25 left
22 additions and 12 deletionsapps/mobile/src/features/threads/git/GitCommitSheet.tsxModified
View file
@@ -10,24 +10,32 @@
import { AppText as Text, AppTextInput as TextInput } from "../../../components/ui/AppText";
import { cn } from "../../../lib/cn";
import { useEnvironmentQuery } from "../../../state/query";
+import {
+ gitRepositoryTargetFromRoute,
+ type GitRepositoryRouteParams,
+} from "../../../state/thread-git-target";
import { useThreadSelection } from "../../../state/use-thread-selection";
import { useSelectedThreadGitActions } from "../../../state/use-selected-thread-git-actions";
import { useSelectedThreadGitState } from "../../../state/use-selected-thread-git-state";
import { useSelectedThreadWorktree } from "../../../state/use-selected-thread-worktree";
import { vcsEnvironment } from "../../../state/vcs";
​
-type GitCommitSheetProps = StaticScreenProps<{
- readonly environmentId: string;
- readonly threadId: string;
-}>;
+type GitCommitSheetProps = StaticScreenProps<
+ {
+ readonly environmentId: string;
+ readonly threadId: string;
+ } & GitRepositoryRouteParams
+>;
​
-export function GitCommitSheet(_props: GitCommitSheetProps) {
+export function GitCommitSheet(props: GitCommitSheetProps) {
+ const repository = gitRepositoryTargetFromRoute(props.route.params);
const navigation = useNavigation();
const { selectedThread } = useThreadSelection();