Skip to content

Commit

Permalink
Merge pull request #5739 from clebergnu/docs_contributors_guide
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored Jul 24, 2023
2 parents ed927e8 + 03d4069 commit 684190f
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions docs/source/guides/contributor/chapters/how.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,7 @@ the code based on some review and, if not, why. Feel free to disagree with the
reviewer, they probably have different use cases and opinions, which is
expected. Try describing yours and suggest other solutions, if necessary.

New versions of your code should not be force-updated (unless explicitly
requested by the code reviewer). Instead, you should:

- Create a new branch out of your previous branch::

$ git checkout my_new_local_branch
$ git checkout -b my_new_local_branch_v2
Then, proceed to make the changes. This is a typical workflow:

- Code, and amend the commit(s) and/or create new commits. If you have
more than one commit in the PR, you will probably need to rebase
Expand All @@ -149,13 +143,13 @@ requested by the code reviewer). Instead, you should:

- Push your changes::

$ git push origin my_new_local_branch_v2

- Create a new Pull Request for this new branch. In the Pull Request
description, point the previous Pull Request and the changes the current Pull
Request introduced when compared to the previous Pull Request(s).
$ git push --force origin my_new_local_branch

- Close the previous Pull Request on GitHub.
Please communicate to the reviewers what the summary of changes are.
Also, make use of GitHub's features to ease the reviewers' life, such
as marking comments as "resolved". Reviewers should make use of
GitHub's "compare" feature to more easily verify the changes since the
last iteration.

After your PR gets merged, you can sync the master branch on your local
repository propagate the sync to the master branch in your fork repository on
Expand Down

0 comments on commit 684190f

Please sign in to comment.