-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref(*): fix changelog global command #146
Conversation
@Joshua-Anderson, @arschles and @krancour are potential reviewers of this pull request based on my analysis of |
569db22
to
70d77fc
Compare
{{end}} | ||
|
||
{{ if (len .Migrations) gt 0 -}} | ||
### Migrations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Migrations
the right term for this? Maybe Updated Components
or Releases
? I just thought it read a bit strangely:
Migrations
- builder v2.5.4 -> v2.5.5
- controller v2.8.0 -> v2.8.1
- postgres v2.2.5 -> v2.2.6
- registry v2.2.3 -> v2.2.4
Fixes
4745179
(builder) - charts: Use the common storage secret
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mboersma yea, perhaps not the ideal term. Either of the alternatives you mentioned sound good -- and also noticing that the header size should probably be bumped down to that of Fixes
below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to Releases
70d77fc
to
5ed429a
Compare
log.Fatal(err.Error()) | ||
return cli.NewExitError(err.Error(), 2) | ||
} | ||
err = toml.Unmarshal(out, &res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be one-line'd:
if err := toml.Unmarshal(out, &res); err != nil {
return cli.NewExitError(err.Error(), 3)
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much appreciated! Changed here and in other spots mentioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
if err != nil { | ||
return cli.NewExitError(err.Error(), 2) | ||
} | ||
err = json.Unmarshal(out, &mapping) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, this can be one-line'd
return | ||
} | ||
vals := &changelog.Values{RepoName: repo, OldRelease: componentVersion.ChartVersion, NewRelease: componentVersion.ComponentVersion} | ||
_, err = changelog.SingleRepoVals(client, vals, componentVersion.ComponentVersion, repo, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be one-line'd as well!
comments are non-blocking, feel free to ignore |
To compensate for individual components now following their own release cadences
5ed429a
to
b17f979
Compare
To compensate for individual components now following their own release cadences.
Notes:
this goes back to the changelog format used in
v2.0.0
-v2.3.0
Workflow releases such as v2.2.0 (with the addition of alphabetical ordering!) as opposed to the more recent/manually assembled format as seen in the latest v2.8.0 releasesince the
deisrel changelog global
command now takes the previous Workflow release'sgenerate_params.toml
(for discerning each component's version migration) and as that file does not contain info on theworkflow
,workflow-cli
andworkflow-e2e
repos, we are unable to add changelog entries with the code as it is now. (Would welcome ideas on how to address this, perhaps in a follow-up issue.) Warnings will be printed like:If/when this PR starts to become a merge candidate, I'll create the associated PR in deis/workflow.
TODO: