Skip to content
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

Initial instructions for release #56

Merged
merged 8 commits into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const defaultOwner = "elastic"
const defaultRepo = "beats"
const defaultRepo = "elastic-agent"

// RootCmd creates and returns root cmd for elastic-agent-changelog-tool.
func RootCmd() *cobra.Command {
Expand Down
36 changes: 35 additions & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,38 @@ To be done.

## I'm the release manager

To be done.
> NOTE: This instructions are for the 0.2.0 milestone (when ready). As more features and automation is added the process will become simpler.

### Preparing the changelog

* Wait for the last BC of the release. If another BC is generated after that or a patch version for a previous minor is released, you might need to restart the process.
* Create a branch **from the commit of the BC**.
* From the root folder of the repository run:

```
$ elastic-agent-changelog-tool build --version x.y.z --owner <owner> --repo <repo>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@endorama @LucianPy if there any default value for owner ? If not, should we make elastic the default value?

Copy link
Member

@endorama endorama Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the default owner is already elastic:

const defaultOwner = "elastic"

The default repo is beats, we may want to update it to elastic-agent.

```
* Where:
* `x.y.z` is the version to release.
* `owner` is the user / organization the repository to use belongs to. The default value is `elastic`.
* `repo` is the name of the repository containing the issues / PRs, etc. The default value is `elastic-agent`.
* This will create `./changelog/x.y.z.yaml`.
* From the root of the repository run:
```
$ elastic-agent-changelog-tool cleanup
```
* Commit the previous changes (consolidated changelod and removed files)
* From the root folder of the repository run:
```
$ elastic-agent-changelog-tool render --version x.y.z
```
* This will generate an asciidoc fragment in the `changelog/` directory.
* Integrate the generated fragment into the changelog. If the changelog is stored in the same repository, commit the changes in this same branch.
* Create a PR with the changes to the `x.y` branch.


### On Release Day

Once the release is given the final go on release day:
* Merge the PR created in the previous section.
* Forward-port it to the other active branches, up to `main`.