Englist · 中文 · Українська · Česky · Magyar · Español · فارسی · Français · Deutsch · Polski · Indonesian · Suomi · മലയാളം · 日本語 · Nederlands · Italiano · Русский · Português (Brasil) · Esperanto · 한국어 · العربي · Tiếng Việt · Dansk · Ελληνικά · Türkçe
This guide will explain in detail how to contribute code to the OpenIM project, using `openimsdk/open-im-server` as an example. We adopt a "one issue, one branch" strategy to ensure each issue corresponds to a dedicated branch, allowing for effective management of code changes.Go to the openimsdk/open-im-server
GitHub page, click the "Fork" button in the upper right corner to fork the repository to your GitHub account.
Clone the forked repository to your local machine:
git clone https://github.com/your-username/open-im-server.git
Add the original repository as a remote upstream to track updates:
git remote add upstream https://github.com/openimsdk/open-im-server.git
Create a new issue in the original repository describing the problem you are facing or the new feature you want to add. For significant feature adjustments, propose an RFC issue to facilitate broad discussion and participation from community members.
Create a new branch based on the main branch and name it descriptively, including the Issue ID, for example:
git checkout -b fix-bug-123
After making changes on your local branch, commit them:
git add .
git commit -m "Describe your changes in detail"
Push your branch back to your GitHub fork:
git push origin fix-bug-123
Go to your fork on GitHub, click the "Pull Request" button. Make sure the PR description is clear and links to the related Issue.
If this is your first time submitting a PR, you need to reply in the PR comments:
I have read the CLA Document and I hereby sign the CLA
If the same modification needs to be submitted to two different branches (e.g., main and release-v3.7), create two new branches from the corresponding remote branches. First complete the modification in one branch, then use the cherry-pick
command to apply these changes to the other branch. After that, submit a separate Pull Request for each branch.