Skip to content

Commit

Permalink
Ignore bosh release with no Github repo for release-notes cmd & updat…
Browse files Browse the repository at this point in the history
…e trainstat url
  • Loading branch information
jajita committed Oct 8, 2024
1 parent 852058e commit af77e11
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions pkg/cargo/bump.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,19 @@ func fetchReleasesFromRepo(ctx context.Context, repoService RepositoryReleaseLis
}

func fetchReleasesForBump(ctx context.Context, kf Kilnfile, bump Bump, client githubClientFunc) Bump {
lister, err := client(ctx, kf, bump.To)
spec, err := kf.BOSHReleaseTarballSpecification(bump.Name)
if err != nil {
log.Println(err)
return bump
}
spec, err := kf.BOSHReleaseTarballSpecification(bump.Name)

// Ignores release notes for Bosh releases with empty Github repository
if spec.GitHubRepository == "" {
return bump
}

lister, err := client(ctx, kf, bump.To)
if err != nil {
log.Println(err)
return bump
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/notes/notes_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type IssuesQuery struct {
}

type TrainstatQuery struct {
TrainstatURL string `long:"trainstat-url" short:"tu" description:"trainstat url to fetch the release notes for component bumps" default:"https://trainstat.sc2-04-pcf1-apps.oc.vmware.com"`
TrainstatURL string `long:"trainstat-url" short:"tu" description:"trainstat url to fetch the release notes for component bumps" default:"https://tas-trainstat.eng.tanzu.broadcom.com"`
}

func TrainstatURL() string {
Expand Down

0 comments on commit af77e11

Please sign in to comment.