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

Function withCmsLabel

packages/decap-cms-backend-github/src/API.ts:167–169  ·  view source on GitHub ↗
(pr: GitHubPull, cmsLabelPrefix: string)

Source from the content-addressed store, hash-verified

165};
166
167function withCmsLabel(pr: GitHubPull, cmsLabelPrefix: string) {
168 return pr.labels.some(l => isCMSLabel(l.name, cmsLabelPrefix));
169}
170
171function withoutCmsLabel(pr: GitHubPull, cmsLabelPrefix: string) {
172 return pr.labels.every(l => !isCMSLabel(l.name, cmsLabelPrefix));

Callers 2

getBranchPullRequestMethod · 0.85

Calls 2

isCMSLabelFunction · 0.90
someMethod · 0.80

Tested by

no test coverage detected