This page will go over the process for contributing to the Observatory Control System. We appreciate your interest in contributing to this project - this has always been a project for the community, by the community!
If you’re interested in contributing code to the project, thank you! For those unfamiliar with the process of contributing to an open-source project, you may want to read through Github’s own short informational section on how to submit a contribution.
Familiarizing yourself with Git
If you are not familiar with git, we encourage you to briefly look at the Git Basics page.
The workflow for submitting a code change is, more or less, the following:
Fork the appropriate repository to your own Github account.
- Clone the forked repository to your local working machine:
git clone firstname.lastname@example.org:<Your Username>/<Repository Name>.git
- Add the original “upstream” repository as a remote.
git remote add upstream https://github.com/observatorycontrolsystem/<Repository Name>.git
- Ensure that you’re synchronizing your repository with the “upstream” one relatively frequently.
git fetch upstream git merge upstream/main
- Create and checkout a branch for your changes (see Branch Naming).
git checkout -b <New Branch Name>
- Commit frequently, and push your changes to Github. Be sure to merge main in before submitting your pull request.
git push origin <Branch Name>
- When your code is complete and tested, create a pull request from the upstream Observatory Control System repository:
Be sure to click “compare across forks” in order to see your branch!
We may ask for some updates to your pull request, so revise as necessary and push when revisions are complete. This will automatically update your pull request.
Branch names should be prefixed with the purpose of the branch, be it a bugfix or an enhancement, along with a descriptive title for the branch.
We recommend that you use a linter, as all pull requests must pass a Codacy check. We also recommend configuring your editor to automatically remove trailing whitespace, add newlines on save, and other such helpful style corrections.
What does the Code of Conduct mean for me?
Our Code of Conduct means that you are responsible for treating everyone on the project with respect and courtesy regardless of their identity. If you are the victim of any inappropriate behavior or comments as described in our Code of Conduct, we are here for you and will do the best to ensure that the abuser is reprimanded appropriately, per our code.