MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / hasNoDocsNeededLabel

Function hasNoDocsNeededLabel

scripts/validate-pull-request-docs.ts:40–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40function hasNoDocsNeededLabel() {
41 if (process.env.GITHUB_EVENT_PULL_REQUEST_LABELS === undefined) {
42 throw new Error("GITHUB_EVENT_PULL_REQUEST_LABELS is not defined");
43 }
44
45 const labels = JSON.parse(process.env.GITHUB_EVENT_PULL_REQUEST_LABELS);
46
47 return labels.some((l: { name: string }) => l.name === SKIP_LABEL);
48}
49
50function extractDocsUrlsFromPRBody(): string[] {
51 const prBody = process.env.GITHUB_EVENT_PULL_REQUEST_BODY;

Callers 1

validatePullRequestFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected