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

Function isReleasePR

scripts/validate-pull-request-changeset.ts:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15const changesetDir = ".changeset";
16
17function isReleasePR() {
18 if (process.env.GITHUB_HEAD_REF === undefined) {
19 throw new Error("GITHUB_HEAD_REF is not defined");
20 }
21
22 return process.env.GITHUB_HEAD_REF.startsWith("changeset-release/");
23}
24
25function hasNoChangesetNeededLabel() {
26 if (process.env.GITHUB_EVENT_PULL_REQUEST_LABELS === undefined) {

Callers 1

validatePullRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected