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

Function withCmsLabel

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

Source from the content-addressed store, hash-verified

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