MCPcopy Create free account
hub / github.com/api3dao/airnode / selectBranch

Function selectBranch

docker/scripts/npm.ts:95–100  ·  view source on GitHub ↗
(branch: string)

Source from the content-addressed store, hash-verified

93};
94
95const selectBranch = (branch: string) => {
96 if (!git.branchExists(branch)) {
97 throw new Error(`No '${branch}' branch found`);
98 }
99 git.checkout(branch);
100};
101
102const selectOrCreateBranch = (headBranch: string, baseBranch: string) => {
103 if (git.branchExists(headBranch)) {

Callers 2

selectOrCreateBranchFunction · 0.85
prePublishSetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected