31 Star 157 Fork 5

腾讯开源 / mars

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CONTRIBUTING.md 2.94 KB
一键复制 编辑 原始数据 按行查看 历史
garryyan 提交于 2018-12-30 18:17 . dev->develop

Contributing to Mars

Welcome to report Issues or pull requests. It's recommended to read the following Contributing Guide first before contributing.

Issues

We use Github Issues to track public bugs and feature requests.

Search Known Issues First

Please search the existing issues to see if any similar issue or feature request has already been filed. You should make sure your issue isn't redundant.

Reporting New Issues

If you open an issue, the more information the better. Such as detailed description, screenshot or video of your problem, logcat and xlog or code blocks for your crash.

Pull Requests

We strongly welcome your pull request to make Mars better.

Branch Management

There are three main branches here:

  1. master branch.
    1. It is the latest (pre-)release branch. We use master for tags, with version number 1.1.0, 1.2.0, 1.3.0...
    2. Don't submit any PR on master branch.
  2. develop branch.
    1. It is our stable developing branch. After full testing, develop will be merged to master branch for the next release.
    2. You are recommended to submit bugfix or feature PR on develop branch.
  3. hotfix branch.
    1. It is the latest tag version for hot fix. If we accept your pull request, we may just tag with version number 1.1.1, 1.2.3.
    2. Only submit urgent PR on hotfix branch for next specific release.

Normal bugfix or feature request should be submitted to develop branch. After full testing, we will merge them to master branch for the next release.

If you have some urgent bugfixes on a published version, but the master branch have already far away with the latest tag version, you can submit a PR on hotfix. And it will be cherry picked to develop branch if it is possible.

master

develop        <--- hotfix PR

feature/bugfix PR

Make Pull Requests

The code team will monitor all pull request, we run some code check and test on it. After all tests passed, we will accecpt this PR. But it won't merge to master branch at once, which have some delay.

Before submitting a pull request, please make sure the followings are done:

  1. Fork the repo and create your branch from master or hotfix.
  2. Update code or documentation if you have changed APIs.
  3. Add the copyright notice to the top of any new files you've added.
  4. Check your code lints and checkstyles.
  5. Test and test again your code.
  6. Now, you can submit your pull request on develop or hotfix branch.

Code Style Guide

Use Code Style for C/C++.

  • 4 spaces for indentation rather than tabs
  • private function should start with "__".
  • function parameters should start with "_".

License

By contributing to Mars, you agree that your contributions will be licensed under its MIT LICENSE

C++
1
https://gitee.com/Tencent/wechat-mars.git
git@gitee.com:Tencent/wechat-mars.git
Tencent
wechat-mars
mars
master

搜索帮助