-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch release-please manifest and config files from changes-branch #31
Conversation
That will benefit both Stainless CI (Robert faced this issue) and the GitHub App (that's where I personally faced the issue when running against my freshly created test repo). |
You can see the generated PR here: DefinitelyATestOrg/sdk-node#1 |
…ven that's Stainless default behaviour
@@ -751,7 +752,7 @@ If you instead want to use the version number \`${newVersion}\` generated from c | |||
return Version.parse(this.initialVersion); | |||
} | |||
|
|||
return Version.parse('1.0.0'); | |||
return Version.parse('0.0.1'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's more in line with initial version numbers Stainless uses.
protected initialReleaseVersion(): Version { | ||
return Version.parse('0.1.0'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why the initial version number is different for different languages? That's kind of odd and doesn't match Stainless behaviour.
@RobertCraigie Unless that's blocking you I will wait for Marcel to be able to review before merging. Just in case he disagrees or has some feedback. Edit: it's not a blocker for my own work, I just updated my stuff to target this branch. |
When using release-please with
--change-branch=next
against a new repository where no manifest or config has been merged tomain
yet, we get an error:My test repositor has a
next
branch with a manifest, but no release has been created yet, somain
is just an "Initial commit".The way upstream release-please generally work is that a
release-please bootstrap
command is first run to generate a default manifest and config. But in the context of Stainless that step isn't necessary, content pushed tonext
will always have release-please config files, we just need to be surerelease-please
is looking at the correct branch. Given thatnext
is always supposed to be based on top ofmain
we can consider its manifest as up to date.