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

Function extractDocsUrlsFromPRBody

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

Source from the content-addressed store, hash-verified

48}
49
50function extractDocsUrlsFromPRBody(): string[] {
51 const prBody = process.env.GITHUB_EVENT_PULL_REQUEST_BODY;
52
53 if (prBody === undefined) {
54 throw new Error("GITHUB_EVENT_PULL_REQUEST_BODY is not defined");
55 }
56
57 return prBody.match(DOCS_PR_URL_PATTERN_GLOBAL) ?? [];
58}
59
60function hasIssueLinkInPRBody() {
61 const prBody = process.env.GITHUB_EVENT_PULL_REQUEST_BODY;

Callers 1

validatePullRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected