1 Star 0 Fork 7

100200cs / OpenBot

forked from YYM / OpenBot 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CONTRIBUTING.md 2.73 KB
一键复制 编辑 原始数据 按行查看 历史
zhoushengming 提交于 2022-04-12 11:01 . fix link errors

Contributing

English | 简体中文

Process

  1. Submit an issue describing the changes you want to implement. If it's only minor changes/bug-fixes, you can skip to step 3.

  2. After the scope was discussed in the issue, assign it to yourself. It should show up in the "To do" column in the OpenBot project.

  3. Fork the project and clone it locally:

    git clone https://github.com/<user_id>/OpenBot.git

  4. Create a branch:

    git checkout -b <branch-name>

    where <branch-name> concisely describes the scope of the work.

  5. Do the work, write good commit messages, push your branch to the forked repository:

    git add <modified file>
    git commit -m <meaningful description>
    git push --set-upstream origin <branch-name>
  6. Create a pull request in GitHub and link the issue to it. It should show up in the "In progress" column in the OpenBot project.

  7. Work on any code review feedback you may receive and push it to your fork. The pull request gets updated automatically.

  8. Get a cold drink of your choice to reward yourself for making the world a better place.

Guidelines

  • Use same style and formatting as rest of code.
    • For the Java (Android) and Python code see below.
    • For any other code, just try to blend in.
  • Update documentation associated with code changes you made.
  • If you want to include 3rd party dependencies, please discuss this in the issue first.
  • Pull requests should implement single features with as few changes as possible.
  • Make sure you don't include temporary or binary files (the gitignores should mostly take care of this).
  • Rebase/merge master into your branch before you submit the pull request.
  • If possible, test your code on Windows, Linux and OSX.

Formatting

Java

We use a gradle script for formatting java code. Make sure you are in the android directory.

You can check your code with:

./gradlew checkStyle

You can apply the style to all files by running:

./gradlew applyStyle

Python

We use black for formatting python code.

You can check your code in the current directory with:

black --check .

You can apply the style to all files in the current directory by running:

black .

Further resources

If you are looking for more information about contributing to open-source projects, here are two good references:

Thank you very much!

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/i100200cs/OpenBot.git
git@gitee.com:i100200cs/OpenBot.git
i100200cs
OpenBot
OpenBot
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891