(releaseVersion: string, headBranch: string, baseBranch: string)
| 165 | }; |
| 166 | |
| 167 | export 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 | |
| 180 | export const publish = async (npmRegistry: string, npmTags: string[], releaseBranch: string) => { |
| 181 | await prePublishSetup(npmRegistry, releaseBranch); |
no test coverage detected