# US 2026/0064407 A1 · Method, apparatus, device and medium for managing code data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0064407 A1
- Document ID: US20260064407A1
- Status: Published application
- Kind: A1
- Application number: 18/933,840
- Filed: 2024-10-31
- Published: 2026-03-05
- Earliest claimed: 2024-08-28
- Applicants: Lemon Inc.; Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Pengwen Jiao; Zihan Xiao
- Web page: https://patentgrep.com/patent/US20260064407A1

## CPC

- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, an apparatus, a device, and a medium for managing code data are provided. In one approach, a set of merging requests is received, the set of merging requests being configured for merging first code data into second code data; in response to determining that the set of merging requests satisfy a predetermined condition, whether there is a previous merging task in execution is determined, the previous merging task being executed based on a set of previous merging requests received before the set of merging requests; and in response to determining that there is no previous merging task in execution, a merging task is executed based on the set of merging requests in order to merge a difference between the first code data and the second code data into the second code data.

## Claims

### Claim 1

A method for managing code data, comprising:
receiving a set of merging requests, the set of merging requests being configured for merging first code data into second code data;
in response to determining that the set of merging requests satisfy a predetermined condition, determining whether there is a previous merging task in execution, the previous merging task being executed based on a set of previous merging requests received before the set of merging requests; and
in response to determining that there is no previous merging task in execution, executing a merging task based on the set of merging requests to merge a difference between the first code data and the second code data into the second code data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the predetermined condition comprises at least one of:
whether a number of the set of merging requests exceeds a threshold number;
whether a time difference between a current time and an execution time of the previous merging task exceeds a threshold time difference; and
whether there is third code data to be merged into the second code data, a code conflict exists between the first code data and the third code data.

### Claim 3 (depends on 1)

The method of claim 1, wherein executing the merging task comprises: for a first merging request in the set of merging requests,
determining a first code portion in the first code data corresponding to the first merging request and a second code portion in the second code data corresponding to the first merging request;
determining a first difference between the first code portion and the second code portion; and
in response to determining that the first difference passes a code checking process, merging the first difference into the second code portion of the second code data.

### Claim 4 (depends on 3)

The method of claim 3, wherein the code checking process comprises at least any of:
a building checking process configured to determine whether the merged second code data is successfully built;
a stability checking process configured to determine whether the merged second code data passes a stability test; and
a security checking process configured to determine whether the merged second code data passes a security test.

### Claim 5 (depends on 3)

The method of claim 3, further comprising at least any of:
in response to determining that the first difference passes the code checking process, executing the first merging request; and
in response to determining that the first difference fails the code checking process, providing prompt information to at least any of: a submitter of the first merging request and an administrator for managing code data merging.

### Claim 6 (depends on 3)

The method of claim 3, further comprising:
with regard to a second merging request in the set of merging requests, determining whether there is a code conflict between the first code portion and a third code portion in the first code data corresponding to the second merging request; and
in response to determining that there is a code conflict between the first code portion and the third code portion, providing prompt information to at least any of a first submitter of the first merging request, and a second submitter of the second merging request.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
determining the first submitter and the second submitter respectively based on a first submission history of the first merging request and a second submission history of the second merging request;
establishing a communication group based on the first submitter and the second submitter; and
providing the prompt information in the communication group.

### Claim 8 (depends on 6)

The method of claim 6, further comprising: in response to determining that the code conflict has been resolved, executing an updated first merging request.

### Claim 9 (depends on 1)

The method of claim 1, further comprising: in response to determining that there is no code conflict between the first code portion and the third code portion, executing the first merging request.

### Claim 10 (depends on 1)

The method of claim 1, wherein the first code data and the second code data comprise source codes associated with an application, the first code data comprises any one of a submission version and a test version of the source codes, and the second code data comprises a development version of the source codes.

### Claim 11

An electronic device, comprising:
at least one processing unit; and
at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform a method for managing code data, the method comprising:
receiving a set of merging requests, the set of merging requests being configured for merging first code data into second code data;
in response to determining that the set of merging requests satisfy a predetermined condition, determining whether there is a previous merging task in execution, the previous merging task being executed based on a set of previous merging requests received before the set of merging requests; and
in response to determining that there is no previous merging task in execution, executing a merging task based on the set of merging requests to merge a difference between the first code data and the second code data into the second code data.

### Claim 12 (depends on 11)

The device of claim 11, wherein the predetermined condition comprises at least one of:
whether a number of the set of merging requests exceeds a threshold number;
whether a time difference between a current time and an execution time of the previous merging task exceeds a threshold time difference; and
whether there is third code data to be merged into the second code data, a code conflict exists between the first code data and the third code data.

### Claim 13 (depends on 11)

The device of claim 11, wherein executing the merging task comprises: for a first merging request in the set of merging requests,
determining a first code portion in the first code data corresponding to the first merging request and a second code portion in the second code data corresponding to the first merging request;
determining a first difference between the first code portion and the second code portion; and
in response to determining that the first difference passes a code checking process, merging the first difference into the second code portion of the second code data.

### Claim 14 (depends on 13)

The device of claim 13, wherein the code checking process comprises at least any of:
a building checking process configured to determine whether the merged second code data is successfully built;
a stability checking process configured to determine whether the merged second code data passes a stability test; and
a security checking process configured to determine whether the merged second code data passes a security test.

### Claim 15 (depends on 13)

The device of claim 13, further comprising at least any of:
in response to determining that the first difference passes the code checking process, executing the first merging request; and
in response to determining that the first difference fails the code checking process, providing prompt information to at least any of: a submitter of the first merging request and an administrator for managing code data merging.

### Claim 16 (depends on 13)

The device of claim 13, further comprising:
with regard to a second merging request in the set of merging requests, determining whether there is a code conflict between the first code portion and a third code portion in the first code data corresponding to the second merging request; and
in response to determining that there is a code conflict between the first code portion and the third code portion, providing prompt information to at least any of a first submitter of the first merging request, and a second submitter of the second merging request.

### Claim 17 (depends on 16)

The device of claim 16, further comprising:
determining the first submitter and the second submitter respectively based on a first submission history of the first merging request and a second submission history of the second merging request;
establishing a communication group based on the first submitter and the second submitter; and
providing the prompt information in the communication group.

### Claim 18 (depends on 16)

The device of claim 16, further comprising any of:
in response to determining that the code conflict has been resolved, executing an updated first merging request; and
in response to determining that there is no code conflict between the first code portion and the third code portion, executing the first merging request.

### Claim 19 (depends on 11)

The device of claim 11, wherein the first code data and the second code data comprise source codes associated with an application, the first code data comprises any one of a submission version and a test version of the source codes, and the second code data comprises a development version of the source codes.

### Claim 20

A non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to implement a method for managing code data, the method comprising:
receiving a set of merging requests, the set of merging requests being configured for merging first code data into second code data;
in response to determining that the set of merging requests satisfy a predetermined condition, determining whether there is a previous merging task in execution, the previous merging task being executed based on a set of previous merging requests received before the set of merging requests; and
in response to determining that there is no previous merging task in execution, executing a merging task based on the set of merging requests to merge a difference between the first code data and the second code data into the second code data.
