Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Papyrus/Papyrus Developer Guide/How to Contribute to Papyrus with Gerrit
Using Gerrit, you can contribute to the Papryrus project, even if you aren't a commuter.
Contents
Sign in the eclipse development chart
- Create an Eclipse Bugzilla account : https://dev.eclipse.org/site_login/createaccount.php
- Sign the CLA : https://wiki.eclipse.org/CLA
- Activate your Gerrit account : https://git.eclipse.org/r/
Retrieve Papyrus code
To retrieve the papyrus code:
- via ssh : ssh://[committer_id]@git.eclipse.org/gitroot/papyrus/org.eclipse.papyrus.git, where [commiter_id] is your Gerrit id.
- via http : http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git
Configure push for Gerrit
Because you're not an official Papyrus commiter, you can't just commit your code on the papyrus git repository; you have to submit your contribution via the commit refs/for/master branch. You can configurate EGit for push on that particular branch:
- On the Fit Repositories view, open Remotes
- Add a new Remote by right clicking on Remotes, then choose Create Remote..., and choose a new name (for example Gerrit)
N.B. : you can also choose to modify the origin remote.
- Configure Gerrit for this remote by right clicking on it, and Gerrit Configuration
You now have to configure the repository URI :
- Choose your preferred protocole (http, https, ssh)
- Enter the papyrus URI : https://git.eclipse.org/r/p/papyrus/org.eclipse.papyrus
- Enter your Gerrit user & password
If you're experiencing problems, please verify that you're pushing on refs/for/master (Or refs/draft/master for hidden review)
How to commit
When you're not an official Papyrus commuter, you have to sign-off and change-id all your commits You can do that easily using EGit by just clicking the two following buttons:
File:EGitSignOff File:EGitChangeId
The first line of your commit comment should be the bugzilla task number and it name; example : Bug 12345 - The name of the bug you fixed.
More information of how to use git on Contributing via Git