Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

More details on how to use gerrit : https://gerrit.openecomp.org/r/Documentation/index.html

Commit Changes

Once you have made changed in the code, before push the changes, you should commit the code locally first.

To do that, go to the Version Control window, under Local Changes, right click the changed files and click Commit Changes....

Image Added

In the Commit Changes window, enter the Commit Message, select Sign-off commit option and click Commit button.

Image Added

Then go to the Terminal window, use command apt-get install git-review to install git-review plugin in the machine, if not already installed.

Image Added

Once installed, under root location of the project enter command git config --list, make sure the email address listed is exactly the same as the one you used in your Linux Foundation account.

Image Added

If your address is not present or not the same as the one defined in Linux Foundation account, enter command git config --global user.email "jondoe@somewhere.com".

Then enter command git commit -as --amend to show the commit message and the sign off entry, as shown below. Make sure the email address is the exactly the same as the email you used in the Linux Foundation account. If not, update the address.

Image Added

Then enter command git review to upload the changed code into the Linux Foundation for reviewing.

Image Added

Go to Gerrit window and refresh, the committed changes will be shown in the window. Right click the commit, you can find the tab to Add Reviewers for reviewing or Abandon the changes if you don't want it any more.

Image Added

If you have been selected as the reviewer of the changes. You can right click the corresponding commit and click ReviewCode-Review to give your score and comments for the change.

Image Added


 — Should we put the above section in a sub section