MCPcopy Create free account
hub / github.com/bytebase/bytebase / getProjectName

Function getProjectName

frontend/src/store/modules/v1/common.ts:97–101  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

95};
96
97export const getProjectName = (name: string): string => {
98 const tokens = getNameParentTokens(name, [projectNamePrefix]);
99 const projectId = tokens[0];
100 return projectId;
101};
102
103export const getProjectNamePlanId = (name: string): string[] => {
104 const tokens = getNameParentTokens(name, [projectNamePrefix, planNamePrefix]);

Callers 2

IssueDetailLabelsFunction · 0.90
projectIssuesRouteFunction · 0.90

Calls 1

getNameParentTokensFunction · 0.85

Tested by

no test coverage detected