Thank you for your desire to make CMHealth better. The Engineering Team at CloudMine is looking forward to working with you!
The public GitHub issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.
Please adhere to the following process when contributing to CMHealth
-
Fork the project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory git clone [email protected]:<your github username>/CMHealthSDK-iOS.git # Navigate to the newly cloned directory cd CMHealthSDK-iOS # Assign the original repo to a remote called "cloudmine" git remote add cloudmine https://github.com/cloudmine/CMHealthSDK-iOS.git
-
If you cloned a while ago, get the latest changes from
cloudmine
git checkout master git fetch cloudmine master git merge cloudmine/master
-
Install the SDK dependencies using CocoaPods and open the project
# Navigate to the Example project directory; this is only used as a test target cd Example # Run the CocoaPods installer pod install # Launch XCode with the workspace open CMHealth.xcworkspace
-
Configure the integration test credentials
# Copy the template file cp Tests/CMHTest-Secrets.h-Template Tests/CMHTest-Secrets.h # Open secrets file and edit the CMHTestsAppId & CMHTestsAPIKey constants open Tests/CMHTest-Secrets.h
-
Ensure the tests are running: in XCode select the
CMHealth-Example
target and press⌘-u
. All tests should pass; if they do not, review your configuration. -
Create a new topic branch (off the main project development branch) to contain your feature, change, or fix:
git checkout -b <topic-branch-name>
-
Commit your changes in logical chunks. Be sure existing tests still pass, and include unit or integration tests for your feature or bug-fix as appropriate. Pull Requests without tests may not be merged until they are included.
-
Locally merge (or rebase) the upstream development branch into your topic branch:
git fetch cloudmine master git merge cloudmine/master
-
Push your topic branch up to your fork:
git push origin <topic-branch-name>
-
Open a Pull Request with a clear title and description against the
master
branch.
Coding should be fun. We hope you enjoy both using and contributing to CMHealth.
By contributing your code, you agree to license your contribution under the current CMHealth license MIT License.