Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code review method, system and device and storage medium

A technology of code and branch, applied in the field of code review

Pending Publication Date: 2019-06-18
携程旅游信息技术(上海)有限公司
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] There are big problems in using two sets of platforms: developers need to learn two sets of methods and two sets of interfaces; developers of code platforms need to maintain two sets of services, and even expand new functions based on two sets of platforms; The service needs to support two sets of code platforms

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code review method, system and device and storage medium
  • Code review method, system and device and storage medium
  • Code review method, system and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0041] Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a code review method, system and device and a storage medium, and the method comprises the steps: receiving a request for pushing a code to a remote host, wherein the request comprises the code requested to be pushed, and the name of a combined target branch in the remote host; Creating a temporary branch according to the code requested to be pushed; Comparing the temporarybranch with the combined target branch to obtain a difference between the two branches; Traversing the difference between the two branches, and creating a plurality of modification items; And reviewing each modification item, and merging codes corresponding to the reviewed modification items into a merging destination branch in the remote host. By the adoption of the technical scheme, the temporary branch is created, the modification items capable of being reviewed in advance are obtained through comparison of the temporary branch and the original branch, the codes are merged to the branch ofthe remote host after reviewing of the modification items is passed, the codes poor in quality are prevented from being stored in the code warehouse, and the requirements of different application scenes are met.

Description

technical field [0001] The present invention relates to the technical field of code review, in particular to a code review method, system, equipment and storage medium. Background technique [0002] At present, the company has two open source code management platforms for the R&D team to use. One is the Gerrit platform, which mainly provides the pre-commit method; the other is Gitlab, which mainly provides the post-commit method. Among them, the pre-commit review method means that the code submitted by the developer to the remote end must pass the code review before it can be stored in the code warehouse. The post-commit review method means that developers first submit their changes to the remote personal branch, and then initiate an application for code review and branch integration. [0003] There are big problems in using two sets of platforms: developers need to learn two sets of methods and two sets of interfaces; developers of code platforms need to maintain two sets ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/77
Inventor 苏玲李海涛
Owner 携程旅游信息技术(上海)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products