Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -911,13 +911,24 @@ func (g *Git) generatePRTitleAndBody(info PRInfo, labelTypes map[string]github.L
if labelBumpType != nil && *labelBumpType != versioning.BumpCustom && *labelBumpType != versioning.BumpNone {
// be very careful if changing this it critically aligns with a regex in parseBumpFromPRBody
versionBumpMsg := "Version Bump Type: " + fmt.Sprintf("[%s]", string(*labelBumpType)) + " - "

if info.VersioningInfo.ManualBump {
versionBumpMsg += string(versionbumps.BumpMethodManual) + " (manual)"
// if manual we bold the message
versionBumpMsg = "**" + versionBumpMsg + "**"
versionBumpMsg += fmt.Sprintf("\n\nThis PR will stay on the current version until the %s label is removed and/or modified.", string(*labelBumpType))
} else {
versionBumpMsg += string(versionbumps.BumpMethodAutomated) + " (automated)"

versionBumpMsg += "\n\n> [!TIP]"
switch *labelBumpType {
case versioning.BumpPrerelease:
versionBumpMsg += "\n> To exit [pre-release versioning](https://www.speakeasy.com/docs/sdks/manage/versioning#pre-release-version-bumps), set a new version or run `speakeasy bump graduate`."
case versioning.BumpPatch, versioning.BumpMinor:
versionBumpMsg += "\n> If updates to your OpenAPI document introduce breaking changes, be sure to update the `info.version` field to [trigger the correct version bump](https://www.speakeasy.com/docs/sdks/manage/versioning#openapi-document-changes)."
}

versionBumpMsg += "\n> Speakeasy supports manual control of SDK versioning through [multiple methods](https://www.speakeasy.com/docs/sdks/manage/versioning#manual-version-bumps)."
}
body += fmt.Sprintf(`## Versioning

Expand Down
Loading