-
Notifications
You must be signed in to change notification settings - Fork 18
Home
Alexandros Kokkalis edited this page Oct 24, 2020
·
4 revisions
Welcome to the spict wiki!
Contributing code to spict is best done using Pull Requests (PR). We should start with a new branch based on a target branch (usually master or dev branch).
Here is a potential work flow:
- Make new branch based on the target branch
git checkout -b name_describing_change
- Make the additions needed
- Increase the minor version in
make_description.R
- Build and install the package. This updates the description file first.
make install
- Test the package locally
make testmore
- Fix and commit everything. Remember to add new files. Use short but descriptive commit messages. If there is an github issue that you are fixing/addressing you can refer to it by it's id number in the commit message. When the PR is merged to the master branch it will automatically close all mentioned issues and make a reference to the PR.
git add .
git commit -am 'Add feature X. Fix bug in function y. Closes #99'
- Push to the remote
git push origin name_describing_change
- Make Pull Request. You can assign someone to review the pull request. It is a good idea to briefly describe the changes in the comment, maybe also including some code illustrating the new feature.
With every version change the NEWS file should be updated. The changes should be added in the top of the file.
Use make vignette
.
todo