File tree Expand file tree Collapse file tree 4 files changed +705
-852
lines changed
Expand file tree Collapse file tree 4 files changed +705
-852
lines changed Original file line number Diff line number Diff line change 11const core = require ( '@actions/core' )
22const { GitHubRelease } = require ( 'release-please/build/src/github-release' )
3- const { ReleasePRFactory } = require ( 'release-please/build/src/release-pr-factory ' )
3+ const { ReleasePR } = require ( 'release-please/build/src/release-pr' )
44
55const RELEASE_LABEL = 'autorelease: pending'
66
@@ -51,7 +51,9 @@ async function main () {
5151 // Next we check for PRs merged since the last release, and groom the
5252 // release PR:
5353 if ( ! command || command === 'release-pr' ) {
54- const release = releasePlease . getReleasePRFactory ( ) . buildStatic ( releaseType , {
54+ const GithubReleasePR = releasePlease . getReleasePR ( )
55+ const release = new GithubReleasePR ( {
56+ releaseType,
5557 monorepoTags,
5658 packageName,
5759 path,
@@ -65,6 +67,7 @@ async function main () {
6567 versionFile,
6668 defaultBranch
6769 } )
70+
6871 const pr = await release . run ( )
6972 if ( pr ) {
7073 core . setOutput ( 'pr' , pr )
@@ -76,14 +79,14 @@ function getGitHubRelease () {
7679 return GitHubRelease
7780}
7881
79- function getReleasePRFactory ( ) {
80- return ReleasePRFactory
82+ function getReleasePR ( ) {
83+ return ReleasePR
8184}
8285
8386const releasePlease = {
8487 main,
8588 getGitHubRelease,
86- getReleasePRFactory
89+ getReleasePR
8790}
8891
8992if ( require . main === module ) {
You can’t perform that action at this time.
0 commit comments