Skip to content
Snippets Groups Projects
Commit 2f6ddfb4 authored by Gururaj Shetty's avatar Gururaj Shetty
Browse files

Update Contribution Process.rst

parent eb5606ff
No related branches found
No related tags found
No related merge requests found
......@@ -44,23 +44,7 @@ Perform the following steps to download the code in the repository to your compu
``git clone $remote_link``
Using the repo Tool to Download Code Repositories in Batches
============================================================
#. Download the repo tool. For details, see `Gitlab Support <https://docs.gitlab.com/ee/user/project/repository/#download-source-code>`_.
``curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo``
``chmod a+x /usr/local/bin/repo``
``pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests``
#. Download code repositories. (There is no **repo branch** parameter.)
``repo init -u https://gitee.com/openharmony/manifest.git -b master``
``repo sync -c``
Committing Code
***************
......@@ -106,11 +90,11 @@ Committing Multiple Repositories (repo init/sync)
``repo config --global repo.token {TOKEN}``
The token is generated by choosing **Settings > Security Settings > Private Token** on Gitee. Example:
The token is generated by choosing **Settings > Security Settings > Private Token** on Gitlab. Example:
``repo config --global repo.token 211XXXXXXXXXXXXXXXXXXXXXXXX``
#. Create an issue under any repository to be modified on Gitee, and record the issue number (for example, #I1TVV4 in the following figure). (The issue provides a function similar to changeID of Gerrit and is used to associate multiple repositories to be modified. Skip this step if modification of multiple repositories is not involved.)
#. Create an issue under any repository to be modified on Gitlab, and record the issue number (for example, #I1TVV4 in the following figure). (The issue provides a function similar to changeID of Gerrit and is used to associate multiple repositories to be modified. Skip this step if modification of multiple repositories is not involved.)
#. Create a branch in the local code workspace, modify the code, and commit the changes.
......@@ -157,13 +141,13 @@ Committing Multiple Repositories (repo init/sync)
Creating a Pull Request
***********************
Access the fork repository on Gitee, click the button for creating a PR, and select the myfeature branch to generate a PR. (Skip this step if a PR has been automatically created using the repo tool.)
Access the fork repository on Gitlab, click the button for creating a PR, and select the myfeature branch to generate a PR. (Skip this step if a PR has been automatically created using the repo tool.)
For details, visit https://docs.gitlab.com/ee/ci/ci_cd_for_external_repos/#how-it-works
.. note::
How do I create PRs at the same time if multiple code repositories have compilation dependencies? During the development of the operating system (OS), it is common that multiple code repositories have compilation dependencies. Therefore, the PRs need to be created and merged at the same time. For this reason, Gitee uses issues as the dependency identifiers for code repositories with compilation dependencies to commit the PRs.
How do I create PRs at the same time if multiple code repositories have compilation dependencies? During the development of the operating system (OS), it is common that multiple code repositories have compilation dependencies. Therefore, the PRs need to be created and merged at the same time. For this reason, Gitlab uses issues as the dependency identifiers for code repositories with compilation dependencies to commit the PRs.
Follow the operations below:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment