-
Notifications
You must be signed in to change notification settings - Fork 44
Developer guide
Contributions to RedDeer are welcomed. There are few tasks which have to take place before submitting a commit to RedDeer. First one is importing RedDeer to your workspace in Eclipse. Second one is processing your commit as a pull request. Please follow and respect this workflow to let your commit be merged to RedDeer successfully.
Right before start of developing RedDeer it is necessary to import RedDeer source code to Eclipse workspace. At first fork RedDeer repo, clone your RedDeer git repository and add remote upstream [email protected]:jboss-reddeer/reddeer.git. Once its done import RedDeer source code to Eclipse as maven project. When import is done, prompt install additional plugins is shown. Install all those following plugins to your Eclipse:
- maven-clean-plugin
- tycho-compiler-plugin
- tycho-packaging-plugin
There are more steps to be completed before starting contributing to RedDeer:
- Install SWTBot to Eclipse from http://download.eclipse.org/technology/swtbot/releases/latest/ to your eclipse
- Install Graphiti to Eclipse from http://download.eclipse.org/graphiti/updates/0.11.3
- Add mockito to your target platform
- Go to http://download.eclipse.org/tools/orbit/downloads
- Find and download mockito plugin (the one with higher version) to some folder (e.g. ~/tp/plugins/mockito)
- In Eclipse, open workbench preference dialog and select preference page Plug-in Development -> Target and add locations of mockito plugin to the existing target platform
Now you are ready to create a contribution. Select an existing issue or create your own if you have found any place for improvement. Create a new branch for this issue. If commit is changing API or there is a new feature, add "update_doc" label to the issue and create and link a new issue labeld with "doc" label to this one. There should be precisely one commit per issue and commit message should reflect to which issue it belongs. Remember to use descriptive message of commit, what does it really solve. Example of commit message:
"Fixes select method of TreeItem (fixes #12345)".
Once the commit is pushed to your branch, convert issue to pull request using hub from command line:
hub pull-request -i 12345
- Code doesn't fix the problem.
- Missing tests.
- Missing javadoc for all public members (except test methods).
- Duplicated code.
- Missing related doc issue if it is needed.
- Multiple commits in the PR.
- Multi-purpose PR or PR with additional source code re-formatting.
- Commit message is missing "(fixes #ID)" or similar acceptable reference to the issue.
- (D) issue is created and assigned to developer (https://github.com/jboss-reddeer/reddeer/issues/) or taken by a contributor if there is no assignee.
- (D) pull request is created/updated and linked to the issues (https://github.com/jboss-reddeer/reddeer/pulls).
- (D) If PR affects documentation, another issue referenced from the original one should be created and labeled with "doc" label. Original issue should have "update_doc" label.
- (A) verification job is triggered automatically (see machydra verification job).
- If you want to run verification job again add comment "test this"
- (D) when verification job is OK then add rev_ prefix.
- (GK) pull request is reviewed ([gatekeeper]_ prefix is added).
- If something is wrong with PR, prefix is removed, developer has to take care of it and go back to step 2
- (GK) pull request is pushed to master (https://github.com/jboss-reddeer/reddeer/commits/master).
- (GK) issue is closed and [gatekeeper]_ prefix is removed.
- (D|GK) Whoever closes issue without applying PR must add reason of doing so.
- (D) Doc issue is created and assigned to developer.
- (D) Once doc/wiki page is created/modified review_required label is added. Doc/wiki page is waiting for a review.
- (DR) Doc/wiki page is reviewed ([docReviewer]_ prefix is added).
- (DR) If there is still some work to do, [docReviewer]_ prefix and review_required label are removed. Go back to step 2.
- (DR) [docReviewer]_ prefix is removed and issue is closed.
- D - developer/contributor
- A - automated (jenkins, etc.), no user action is required
- GK - gatekeeper (PR reviewer)
- DR - Documentation reviewer