MCPcopy Create free account
hub / github.com/decaporg/decap-cms / statusToLabel

Function statusToLabel

packages/decap-cms-lib-util/src/APIUtils.ts:19–21  ·  view source on GitHub ↗
(status: string, labelPrefix: string)

Source from the content-addressed store, hash-verified

17}
18
19export function statusToLabel(status: string, labelPrefix: string) {
20 return `${getLabelPrefix(labelPrefix)}${status}`;
21}
22
23export function generateContentKey(collectionName: string, slug: string) {
24 return `${collectionName}/${slug}`;

Callers 11

createPullRequestMethod · 0.90
localGitMiddlewareFunction · 0.90
setPullRequestStatusMethod · 0.90
createMergeRequestMethod · 0.90
setPullRequestStatusMethod · 0.90
createPullRequestMethod · 0.90

Calls 1

getLabelPrefixFunction · 0.85

Tested by

no test coverage detected