-
Notifications
You must be signed in to change notification settings - Fork 20
Document the stable release workflow #127
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,6 +60,26 @@ If someone already merged it but didn't release it, then it can be released: | |
| $ ../../bin/release-module | ||
| ``` | ||
|
|
||
| ### Stable releases | ||
|
|
||
| All the release scripts assume they're releasing to master. For a stable release, additional parameters are needed. All of the above scripts accept parameters. The first is the directory where to execute. | ||
|
|
||
| To create a release PR for the current directory to the 11.1-stable branch, first get your working directory set up correctly. This means that git should point to the correct code and `CHANGELOG.md` is prepared. Bundler should also have all gems installs. In the regular workflow, the `changelogs` command does this, but [Github Changelog Generator](https://github.com/github-changelog-generator/github-changelog-generator) doesn't really support non-linear releases (with branches) so in practice it's easier to do so by hand. | ||
|
|
||
| Once all the code is prepared, a PR should be submitted: | ||
|
|
||
| ```console | ||
| $ ../../bin/release-pr . 11.1-stable | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This assumes you have this structure, correct? That's not clear from the README. Is there a script or command that sets this up?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I ran this, and this was the output (with no changes):
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Well yes, but it already did that before. Just keeping things consistent. Technically you can also run it from the root as
It is intended that you run this instead of the others. So what I always did was
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does build up a changelog mean? Manually adding the entries in the CHANGELOG file?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've rewritten it a bit. Please have a look at the latest version. |
||
| ``` | ||
|
|
||
| Once approved, merging also accepts the same arguments: | ||
|
|
||
| ```console | ||
| $ ../../bin/release-merge . 11.1-stable | ||
| ``` | ||
|
|
||
| `release-module` performs no git operations and behaves the same regardless of stable/master. `release-merge` already calls it so it's not documented here. | ||
|
|
||
| ### Short Bulk Release Workflow | ||
|
|
||
| This repository also contains scripts to easy module releases. This short workflow: | ||
|
|
||
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.
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 I read this paragraph I still find I am not sure what to do with respect to "git should point to the correct code" and "CHANGELOG.md is prepared". I think this is complicated by the previous release sections that talk about generating a changelog. Does this translate to:
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.
Well, that's what you get when you write documentation at the end of a Friday afternoon ;)