Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert committed Nov 8, 2024
1 parent 16bac9c commit 58d4eaf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/versionbumps/versionBumps.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"regexp"

"github.com/google/go-github/v63/github"
"github.com/speakeasy-api/sdk-generation-action/internal/environment"
"github.com/speakeasy-api/versioning-reports/versioning"
"golang.org/x/exp/slices"
)
Expand Down Expand Up @@ -65,6 +66,11 @@ func GetLabelBasedVersionBump(pr *github.PullRequest) versioning.BumpType {
}

func ManualBumpWasUsed(bumpType *versioning.BumpType, versionReport *versioning.MergedVersionReport) bool {
// the combination of setting a manual version and a force is considered a manual bump
if environment.SetVersion() != "" && environment.ForceGeneration() {
return true
}

if bumpType == nil || versionReport == nil {
return false
}
Expand Down

0 comments on commit 58d4eaf

Please sign in to comment.