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

Function openPullRequest

docker/scripts/npm.ts:167–178  ·  view source on GitHub ↗
(releaseVersion: string, headBranch: string, baseBranch: string)

Source from the content-addressed store, hash-verified

165};
166
167export const openPullRequest = async (releaseVersion: string, headBranch: string, baseBranch: string) => {
168 fetchProject();
169 git.setIdentity('API3 Automation', 'automation@api3.org');
170 github.authenticate();
171 selectOrCreateBranch(headBranch, baseBranch);
172 installDependencies();
173 applyReleaseChanges(releaseVersion, headBranch);
174
175 const pullRequestTitle = `Release v${releaseVersion}`;
176 const pullRequestNumber = await github.createPullRequest(headBranch, baseBranch, pullRequestTitle, '');
177 github.requestPullRequestReview(pullRequestNumber);
178};
179
180export const publish = async (npmRegistry: string, npmTags: string[], releaseBranch: string) => {
181 await prePublishSetup(npmRegistry, releaseBranch);

Callers 1

cli.tsFile · 0.90

Calls 4

fetchProjectFunction · 0.85
selectOrCreateBranchFunction · 0.85
installDependenciesFunction · 0.85
applyReleaseChangesFunction · 0.85

Tested by

no test coverage detected