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

Function planQueryNameForProject

frontend/src/react/lib/plan/title.ts:19–22  ·  view source on GitHub ↗
(
  project: Pick<Project, "enforceIssueTitle">,
  generate: () => string
)

Source from the content-addressed store, hash-verified

17 * store lookups or string formatting don't pay that cost when the gate returns.
18 */
19export const planQueryNameForProject = (
20 project: Pick<Project, "enforceIssueTitle">,
21 generate: () => string
22): string | undefined => (project.enforceIssueTitle ? undefined : generate());
23
24/**
25 * Writes the auto-generated plan title into `query.name` unless the project

Callers 2

title.test.tsFile · 0.90
applyPlanTitleToQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected