OpenMRS resources: Difference between revisions

Content added Content deleted
imported>Chrishay7
imported>Chrishay7
Line 91: Line 91:
Before working on a current bug, you might like to try completing [https://openhatch.org/wiki/OpenMRS_sample_bug this older one] in order to get a feel for the workflow.
Before working on a current bug, you might like to try completing [https://openhatch.org/wiki/OpenMRS_sample_bug this older one] in order to get a feel for the workflow.


= Workflow =
= Workflow for a =


See [https://github.com/hypotext/OpenMRS-dev-setup/wiki/Setting-up-git,-plus-workflow-tutorial here].
See [https://github.com/hypotext/OpenMRS-dev-setup/wiki/Setting-up-git,-plus-workflow-tutorial here].
Line 98: Line 98:
GitHub: visual interface for git. Lets you view repositories, pull requests (requests from other people to add original code), etc. online.
GitHub: visual interface for git. Lets you view repositories, pull requests (requests from other people to add original code), etc. online.


* First, clone the "official version" from GitHub (happens only once): https://github.com/openmrs/openmrs-core
* First, fork the "official version" from GitHub to your own Github repository (happens only once). Here's the offical code base: https://github.com/openmrs/openmrs-core
* Set up your remotes so you get new code and push your original code to the right places
* Set up your remotes so you get new code and push your original code to the right places (setting an "origin" remote for your fork and an "upstream" remote for the official code base)
* Pull new changes from upstream (the "official" version of OpenMRS on GitHub, linked above)
* Pull new changes from the the "upstream" remote
* Make a new branch for the ticket you'd like to work on
* Make local changes on your machine
* Make local changes on your machine to fix the bug/implement the feature
* Push to origin (your "fork" of OpenMRS on your GitHub account). e.g. here is [https://github.com/hypotext/openmrs-core- mine]
* Push to your "origin" remote
* When done, make a pull request on upstream, which will be reviewed. [https://github.com/openmrs/openmrs-core/pulls Current OpenMRS pull requests]
* When done, make a pull request on upstream, which will be reviewed. [https://github.com/openmrs/openmrs-core/pulls Current OpenMRS pull requests]
* Repeat
* Repeat