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

Function isReleasePR

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

Source from the content-addressed store, hash-verified

30const DOCS_PR_URL_PATTERN_GLOBAL = new RegExp(DOCS_PR_URL_PATTERN.source, "gi");
31
32function isReleasePR() {
33 if (process.env.GITHUB_HEAD_REF === undefined) {
34 throw new Error("GITHUB_HEAD_REF is not defined");
35 }
36
37 return process.env.GITHUB_HEAD_REF.startsWith("changeset-release/");
38}
39
40function hasNoDocsNeededLabel() {
41 if (process.env.GITHUB_EVENT_PULL_REQUEST_LABELS === undefined) {

Callers 1

validatePullRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected