It appears that when we are using Manifest.fromConfig(), our search for the latest release version can return invalid results.
- We grab the latest X commits on the target branch
- We look for a merged release pull request
- We fallback to latest GitHub releases that have a SHA matching a recent commit
- We fallback to latest GitHub tags that have a SHA matching a recent commit
If step 1 fails (GraphQL), then we have an empty commit set, so step 2, 3, and 4 all fail. Thus release-please assumes we've never created releases before and propose a new release with the initial default version.
Example: googleapis/java-storage#1564 (look at the initial proposed PR).
It appears that when we are using
Manifest.fromConfig(), our search for the latest release version can return invalid results.If step 1 fails (GraphQL), then we have an empty commit set, so step 2, 3, and 4 all fail. Thus release-please assumes we've never created releases before and propose a new release with the initial default version.
Example: googleapis/java-storage#1564 (look at the initial proposed PR).