当前位置:网站首页>Quickly submit a PR (Web) for OpenHarmony in 5 minutes

Quickly submit a PR (Web) for OpenHarmony in 5 minutes

2022-08-11 09:04:00 InfoQ



Event title:
[OpenHarmony Open Source Contributor Program 2022]

1. Introduction

This article will describe how to use the web pageOperation, submit PR quickly within 3 minutes, suitable for simple document modification PR.
The overall process is:
Discover Issue->Create Issue->
Sign dco agreement
->Register Gitee->fork repository -> Edit online (and add extended information) -> Submit PR -> PR inspection -> Wait for Committer review -> Merge.

1. Create Issue

1. Click New Issue

2. Jump to the interface as shown, enter the title and content


3. After clicking Create, as shown in the figure, remember #I5LPU2, and then associate Pr with


2. Sign DcoAgreement

Sign the dco agreement

3.Register Gitee

Register

4.Fork repository


First find the repository where you want to submit PR, perform the fork operation, and fork the repository to my repository.
1. As shown in the figure below, the name of the warehouse we want to modify is docs, and click the fork button in the upper right corner.

2.Fork successfully will automatically enter its own fork warehouse, as shown in the following figure.

5. Modify the content

After the warehouse has been forked, we can modify the content online through the Web, taking the modification of README.md as an example:
1.Click README.md to open the file.

2. Click Edit to modify the file.

3. After entering the file modification interface, the file content is modified in markdown syntax format.

4. Click on the small eyes to preview the effect after modification

5. After the file modification is completed, enter the extended information, otherwise the PR will fail to pass the DCO schoolThe format is as follows:
Signed-off-by: gitee username
For example, my
Signed-off-by: Nut <[email protected]>
After entering the extended information, as shown in the figure below, click Submit, and the modification of the local warehouse is completed.

6. Submit PR

  • Click docsl in the upper left corner to enter our fork's local repository.

  • Click the Pull Request button to enter the PR submission page.

  • Enter the title of the PR submission, the content can be defined by yourself, and add #I5LPU2 to thisThen click Create Pull Request.

  • After the creation is complete, it will automatically jump to our PR page.

7.PR detection

After the PR submission is completed, it is necessary to check whether the submitted PR conforms to the warehouse rules. After the detection is successful, PROnly then can they be merged, and the PR process completed at one time is considered a success.
  • Comment start build under the PR to perform data detection and trigger access control inspection.

  • Refresh the page to view the inspection results.When the
    dco check is successful, the code quality check is successful, and the code compliance check is successful
    , you can wait for the warehouse administrator to join in!
At this point, the whole process is over. Compared with the local operation method, this is faster, but there are also problems, that is, this can only be used for simple modificationThe textual description will be more appropriate. If it is at the code level, it is better to follow another method I provided, which will be better.
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110858476941.html