19 lines · 689 B · TypeScript
RawDownload
import { scopedProjectKey, scopeProjectRef } from "@t3tools/client-runtime";import type { ScopedProjectRef } from "@t3tools/contracts";import type { Project } from "./types"; export function deriveLogicalProjectKey(  project: Pick<Project, "environmentId" | "id" | "repositoryIdentity">,): string {  return (    project.repositoryIdentity?.canonicalKey ??    scopedProjectKey(scopeProjectRef(project.environmentId, project.id))  );} export function deriveLogicalProjectKeyFromRef(  projectRef: ScopedProjectRef,  project: Pick<Project, "repositoryIdentity"> | null | undefined,): string {  return project?.repositoryIdentity?.canonicalKey ?? scopedProjectKey(projectRef);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t