We appreciate your interest in contributing to SOS Docs site! This document outlines the process for contributing to this project and helps maintain a consistent workflow for all contributors.
Always create a new branch when making changes. This helps keep the main branch clean and allows for easier code reviews.
To create a new branch:
-
Ensure you're on the latest version of the main branch:
git checkout master git pull origin master
-
Create a new branch with a descriptive name following the Branch Naming Convention:
git checkout -b <v#.#.#>
Using the Semantic Versioning approach for branch names keeps the format consistent and can be easily identitfied as to what changes were made. The format would look something like this:
v1.0.0
Semantic Versioning (SemVer) is a versioning scheme that uses a three-part version number: MAJOR.MINOR.PATCH. Each part of the version number is incremented based on the type of changes made. Below are some examples:
- MAJOR: Incompatible (non-backwards-compatible) API changes or core-dependecy related change.
- MINOR: Backwards-compatible new features / removal of an entire feature.
- PATCH: Backwards-compatible bug fixes, patches, hot fixes.
Note: The term "backwards-compatible" simply means that the change being made can be reversed.
When contributing, consider how your changes might affect the project's version number. For example, say you fixed some grammatical issues or added comments to a line of code, this would be considered a PATCH fix, since this wouldn't be considered a new feature or entire feature removal.
- Before submitting a pull request, ensure your code adheres to the project's coding standards and passes all tests (if any).
- Write a clear and concise description of your changes in the pull request (please be descriptive where necessary).
- Reference any related issues in your pull request description!
- Be prepared to make changes based on code review feedback.
- Please ensure that someone REVIEWS THE CODE PRIOR TO MERGING. This is to ensure a "Maker" / "Checker" system.
- Ensure to add the appropriate "label" to the PR after creating the request.
- Be sure to associate the PR to a particular organization "project" as well.
- If you are reviewing Pull Requests, be sure to add a comment on whether or not a PR was approved. If something wasn't approved, add a comment to the appropriate file or line of code and explain what the reason for denial is.
- On the other hand if the PR was approved and have no comments, simply provide
"Approved"
to the Request Review before submitting your approval. - Please Merge if all checks are clear. Thank you!
- Follow the existing code style and conventions used in the project.
- Use consistent indentation (spaces or tabs as per project preference).
- Write clear, self-explanatory code and add comments where necessary.
- Ensure all existing tests (whatever it may be) pass before submitting a pull request. Don't submit a "new feature" that doesn't compile/build.
Write clear commit messages that explain the changes made. Do not name the commit message such as fixed somthing
or edits made
. Be a more descriptive such as fixed code example on page 2
.
Update relevant documentation when making changes to the codebase (if necessary).
If you have any questions or need support, please open an issue or reach out to us in our Discord.
Thank you for contributing to Epicentral Labs!