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

Function push

docker/scripts/git.ts:27–33  ·  view source on GitHub ↗
(branch: string, options?: ExecSyncOptions)

Source from the content-addressed store, hash-verified

25};
26
27export const push = (branch: string, options?: ExecSyncOptions) => {
28 if (branch === 'master') {
29 throw new Error(`No pushing to 'master' branch`);
30 }
31
32 runCommand(`git push origin ${branch}`, options);
33};
34
35export const branchExists = (branch: string, options?: ExecSyncOptions) => {
36 const foundRemoteBranches = runCommand(`git ls-remote --heads origin ${branch}`, options);

Callers

nothing calls this directly

Calls 1

runCommandFunction · 0.90

Tested by

no test coverage detected