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

Function withCmsLabel

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

Source from the content-addressed store, hash-verified

193};
194
195function withCmsLabel(pr: GitHubPull, cmsLabelPrefix: string) {
196 return pr.labels.some(l => isCMSLabel(l.name, cmsLabelPrefix));
197}
198
199function withoutCmsLabel(pr: GitHubPull, cmsLabelPrefix: string) {
200 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