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

Function hasIssueLinkInPRBody

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

Source from the content-addressed store, hash-verified

58}
59
60function hasIssueLinkInPRBody() {
61 const prBody = process.env.GITHUB_EVENT_PULL_REQUEST_BODY;
62
63 if (prBody === undefined) {
64 throw new Error("GITHUB_EVENT_PULL_REQUEST_BODY is not defined");
65 }
66
67 return /github\.com\/nomicfoundation\/hardhat-website\/issues\/\d+/i.test(
68 prBody,
69 );
70}
71
72async function collectDocsUrlsFromChangesets(): Promise<string[]> {
73 if (process.env.GITHUB_BASE_REF === undefined) {

Callers 1

validatePullRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected