Skip to content

Commit

Permalink
[release tool] add org flag for generating release notes (projectcali…
Browse files Browse the repository at this point in the history
  • Loading branch information
radTuti committed Oct 25, 2024
1 parent e366a6d commit 29f852d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions release/build/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ func releaseSubCommands(cfg *config.Config) []*cli.Command {
{
Name: "generate-release-notes",
Usage: "Generate release notes for the next release",
Flags: []cli.Flag{
&cli.StringFlag{Name: orgFlag, Usage: "Git organization", EnvVars: []string{"ORGANIZATION"}, Value: config.DefaultOrg},
},
Action: func(c *cli.Context) error {
configureLogging("release-notes.log")
ver, err := version.DetermineReleaseVersion(version.GitVersion(), cfg.DevTagSuffix)
Expand Down
2 changes: 1 addition & 1 deletion release/pkg/manager/calico/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ func (r *CalicoManager) assertReleaseNotesPresent(ver string) error {
// Validate that the release notes for this version are present,
// fail if not.

releaseNotesPath := fmt.Sprintf("release-notes/%s-release-notes.md", ver)
releaseNotesPath := filepath.Join(r.repoRoot, "release-notes", fmt.Sprintf("%s-release-notes.md", ver))
releaseNotesStat, err := os.Stat(releaseNotesPath)
// If we got an error, handle that?
if err != nil {
Expand Down

0 comments on commit 29f852d

Please sign in to comment.