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

docs/developer: change release branch naming convention #8

Merged
merged 1 commit into from
Feb 28, 2024
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
8 changes: 4 additions & 4 deletions docs/developer/release/1-create-release-branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Patch Releases for that major pr minor version of the agent.

2. Create and push the release branch from the selected base commit:

The name of the release branch should be `release-VERSION_PREFIX`
defined above, such as `release-v0.31`.
The name of the release branch should be `release/VERSION_PREFIX`
defined above, such as `release/v0.31`.

> **NOTE**: Branches are only made for VERSION_PREFIX; do not create branches for the full VERSION such as `release-v0.31-rc.0` or `release-v0.31.0`.
> **NOTE**: Branches are only made for VERSION_PREFIX; do not create branches for the full VERSION such as `release/v0.31-rc.0` or `release/v0.31.0`.

- If the consensus commit is the latest commit from main you can branch from main.
- If the consensus commit is not the latest commit from main, branch from that instead.

> **NOTE**: Don't create any other branches that are prefixed with `release` when creating PRs or
those branches will collide with our automated release build publish rules.
those branches will collide with our automated release build publish rules.
6 changes: 3 additions & 3 deletions docs/developer/release/3-update-version-in-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The project must be updated to reference the upcoming release tag whenever a new
- Stable Release example PR [here](https://github.com/grafana/agent/pull/3119)
- Patch Release example PR [here](https://github.com/grafana/agent/pull/3191)

4. Create a branch from `release-VERSION_PREFIX` for [grafana/agent](https://github.com/grafana/agent).
4. Create a branch from `release/VERSION_PREFIX` for [grafana/agent](https://github.com/grafana/agent).

5. Cherry pick the commit on main from the merged PR in Step 3 from main into the new branch from Step 4:

Expand All @@ -50,9 +50,9 @@ The project must be updated to reference the upcoming release tag whenever a new

Delete the `Main (unreleased)` header and anything underneath it as part of the cherry-pick. Alternatively, do it after the cherry-pick is completed.

6. Create a PR to merge to `release-VERSION_PREFIX` (must be merged before continuing).
6. Create a PR to merge to `release/VERSION_PREFIX` (must be merged before continuing).

- Release Candidate example PR [here](https://github.com/grafana/agent/pull/3066)
- Stable Release example PR [here](https://github.com/grafana/agent/pull/3123)
- Patch Release example PR [here](https://github.com/grafana/agent/pull/3193)
- The `CHANGELOG.md` was updated in cherry-pick commits prior for this example. Make sure it is all set on this PR.
- The `CHANGELOG.md` was updated in cherry-pick commits prior for this example. Make sure it is all set on this PR.
Loading