-
Notifications
You must be signed in to change notification settings - Fork 150
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
Update guidance on choosing a base branch #574
Open
scpeters
wants to merge
2
commits into
master
Choose a base branch
from
scpeters/contributing_base_branch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,10 +162,21 @@ get acquainted with this development process. | |
|
||
1. **Choose a base branch.** | ||
- If your changes will break API or ABI, then base your new branch off of `main`. | ||
If this package's `main` branch is not part of the upcoming Gazebo collection, | ||
create an issue on the package repository asking its `main` branch to be added | ||
to the next collection. | ||
For example, at the time this documentation is being written the upcoming Jetty | ||
collection is [using the gz-cmake4 branch](https://github.com/gazebo-tooling/gazebodistro/blob/bc0de6a86d6ab84106f208395969353d43b18dac/collection-jetty.yaml#L6) | ||
rather than `main`, which means gz-cmake's `main` branch is actually not part | ||
of a collection yet. | ||
- If you are making interdependent changes to multiple repositories without | ||
breaking API or ABI, it is also recommended to base your new branches off of `main` | ||
to simplify automated testing of the changes and the review process. Your | ||
changes may be backported to an existing release once all the changes | ||
breaking API or ABI, it is recommended to base your new branches off of | ||
the branch used in the upcoming collection | ||
to simplify automated testing of the changes and the review process. | ||
For example, at the time this documentation is being written the upcoming Jetty | ||
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. If we have Jetty open for development, should be fine to merge ABI/API breaking changes here? |
||
collection branches are documented in | ||
[gazebodistro](https://github.com/gazebo-tooling/gazebodistro/blob/master/collection-jetty.yaml). | ||
Your changes may be backported to an existing release once all the changes | ||
have been merged. | ||
- If your changes don't break | ||
API/ABI and you would like them to be released to an existing release | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Might not be easy but I think that we should drive to simplify rules so people that read "Choose a base branch" with the intention of coding as soon as possible don't fall into too much effort to start that. This
main
branch procedure that is well described seems something more designed for the core team than for the newcomers.For newcomers, different difficulties are here: what is a collection? Which is the upcoming collection nowadays? How can I check if main branch is part of any collection? Why I need to create an issue if all I what to do is to send a PR?.