A feature branch pipeline configuration method and feature branch code submission method

Through the feature branch pipeline configuration and code submission method, the problem of low quality inspection efficiency and errors when submitting feature branch code is solved, automatic quality inspection and submission of code is realized, and the quality of the code in the remote code base is ensured.

CN112650524BActive Publication Date: 2024-09-17AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011569106.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-26
Publication Date
2024-09-17
Estimated Expiration
2040-12-26

AI Technical Summary

Technical Problem

In the existing technology, the feature branch code lacks an automated mechanism when it is submitted to the remote code configuration library, resulting in low efficiency of quality inspection and prone to errors, and the quality of the submitted code cannot be guaranteed.

Method used

Provides a feature branch pipeline configuration method and code submission method. By receiving user requests, the pipeline is configured to record the common quality inspection process, and the code is quality checked before submission to ensure that the code meets the preset conditions and is automatically submitted.

Benefits of technology

It implements automated quality inspection and submission of feature branch code, ensuring the quality of the code stored in the remote code base, improving submission efficiency and reducing human errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112650524B
    Figure CN112650524B
Patent Text Reader

Abstract

The present application discloses a feature branch pipeline configuration method and a feature branch code submission method, wherein the feature branch pipeline configuration method includes: after receiving a feature branch pipeline configuration request triggered by a user, the pipeline configuration page can be opened first, and then the feature branch pipeline can be configured in the pipeline configuration page, so that the feature branch pipeline is used to record the common quality inspection process of the feature branch code, so that all feature branch codes can be subsequently quality inspected according to the feature branch pipeline, and the feature branch code that passes the quality inspection is submitted to a remote code configuration library for storage, so that the feature branch code to be submitted can be automatically submitted to the remote code configuration library. Among them, because the feature branch pipeline is used to record the common quality inspection process of the feature branch code, the quality inspection can be performed according to the feature branch pipeline during the submission process of any feature branch code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a feature branch pipeline configuration method and a feature branch code submission method. Background Art

[0002] For a distributed version control system (i.e., GIT), after a developer receives a development task for a function to be implemented, the developer can first write a feature branch code based on the function to be implemented so that the feature branch code can implement the function to be implemented; and then the developer submits it to the remote code configuration library.

[0003] However, how to automatically submit feature branch codes to the remote code configuration repository remains a technical problem that needs to be solved urgently. Summary of the invention

[0004] In order to solve the above technical problems existing in the prior art, the present application provides a feature branch pipeline configuration method and a feature branch code submission method, which can automatically submit the feature branch code to a remote code configuration library.

[0005] In order to achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:

[0006] The embodiment of the present application provides a method for configuring a feature branch pipeline, the method comprising:

[0007] Receive feature branch pipeline configuration requests triggered by users;

[0008] Open the pipeline configuration page;

[0009] The feature branch pipeline is configured in the pipeline configuration page so that the feature branch pipeline is used to record the common quality inspection process of the feature branch code.

[0010] In a possible implementation manner, when the pipeline configuration page includes a task configuration subpage and a trigger configuration subpage, and the trigger configuration subpage includes a branch filter attribute, configuring the feature branch pipeline in the pipeline configuration page includes:

[0011] Adding a first task in the task configuration subpage, and setting an attribute of the first task to a first attribute value;

[0012] Adding a first filter condition in the branch filter attribute of the trigger configuration subpage;

[0013] Updating the attribute of the first task to a second attribute value;

[0014] At least one second filter condition is added in the branch filter attribute of the trigger configuration subpage.

[0015] In a possible implementation manner, after updating the attribute of the first task to a second attribute value, the method further includes:

[0016] Add the second task, the third task and the fourth task in the task configuration subpage.

[0017] The present application also provides a method for submitting feature branch code, the method comprising:

[0018] Receive a feature branch code submission request triggered by a user; wherein the feature branch code submission request is used to request submission of N feature branch codes to a remote code configuration repository; N is a positive integer;

[0019] Performing a quality check on the i-th feature branch code according to a pre-configured feature branch pipeline to obtain an i-th quality check result; wherein the feature branch pipeline is configured using any implementation of the feature branch pipeline configuration method provided in the embodiment of the present application; i is a positive integer, i≤N;

[0020] When it is determined that the i-th quality inspection result meets the preset submission condition, the i-th feature branch code to be submitted is submitted to the remote code configuration library.

[0021] The embodiment of the present application also provides a characteristic branch pipeline configuration device, the device comprising:

[0022] A first receiving unit, configured to receive a feature branch pipeline configuration request triggered by a user;

[0023] A page opening unit, used to open the pipeline configuration page;

[0024] The pipeline configuration unit is used to configure the feature branch pipeline in the pipeline configuration page so that the feature branch pipeline is used to record the common quality inspection process of the feature branch code.

[0025] In a possible implementation manner, when the pipeline configuration page includes a task configuration subpage and a trigger configuration subpage, and the trigger configuration subpage includes a branch filter attribute, the pipeline configuration unit includes:

[0026] A first configuration subunit, configured to add a first task in the task configuration subpage, and set an attribute of the first task to a first attribute value;

[0027] A second configuration subunit is used to add a first filtering condition to the branch filter attribute of the trigger configuration subpage;

[0028] A third configuration subunit, configured to update the attribute of the first task to a second attribute value;

[0029] The fourth configuration subunit is used to add at least one second filtering condition in the branch filter attribute of the trigger configuration subpage.

[0030] In a possible implementation manner, the pipeline configuration unit further includes:

[0031] The fifth configuration subunit is used to add a second task, a third task and a fourth task in the task configuration subpage.

[0032] The embodiment of the present application also provides a feature branch code submission device, the device comprising:

[0033] A second receiving unit is used to receive a feature branch code submission request triggered by a user; wherein the feature branch code submission request is used to request submission of N feature branch codes to a remote code configuration repository; N is a positive integer;

[0034] A quality inspection unit, configured to perform a quality inspection on the i-th feature branch code according to a pre-configured feature branch pipeline to obtain an i-th quality inspection result; wherein the feature branch pipeline is configured using any implementation of the feature branch pipeline configuration method provided in an embodiment of the present application; i is a positive integer, i≤N;

[0035] The code submission unit is used to submit the i-th feature branch code to be submitted to the remote code configuration library when it is determined that the i-th quality inspection result meets the preset submission condition.

[0036] The present application also provides a device, the device comprising a processor and a memory:

[0037] The memory is used to store computer programs;

[0038] The processor is used to execute any implementation of the feature branch pipeline configuration method provided in the embodiments of the present application according to the computer program, or execute any implementation of the feature branch code submission method provided in the embodiments of the present application.

[0039] An embodiment of the present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute any implementation of the feature branch pipeline configuration method provided in the embodiment of the present application, or execute any implementation of the feature branch code submission method provided in the embodiment of the present application.

[0040] Compared with the prior art, the embodiments of the present application have at least the following advantages:

[0041] In the feature branch pipeline configuration method provided in the embodiment of the present application, after receiving the feature branch pipeline configuration request triggered by the user, the pipeline configuration page can be opened first, and then the feature branch pipeline can be configured in the pipeline configuration page, so that the feature branch pipeline is used to record the common quality inspection process of the feature branch code, so that all feature branch codes can be quality inspected according to the feature branch pipeline in the future, and the feature branch code that passes the quality inspection can be submitted to the remote code configuration library for storage, so that the feature branch code to be submitted can be automatically submitted to the remote code configuration library.

[0042] Among them, because the feature branch pipeline is used to record the common quality inspection process of feature branch code, the feature branch pipeline is applicable to any feature branch code, so that quality inspection can be performed according to the feature branch pipeline during the submission process of any feature branch code. In this way, it can be ensured that there are no quality problems with the feature branch codes successfully submitted to the remote code configuration repository, thereby ensuring that all feature branch codes stored in the remote code configuration repository are of qualified quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0044] Figure 1 A flowchart of a feature branch pipeline configuration method provided in an embodiment of the present application;

[0045] Figure 2 A schematic diagram of a pipeline configuration page provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of a task configuration subpage provided in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of a trigger configuration sub-page provided in an embodiment of the present application;

[0048] Figure 5 A schematic diagram of a second attribute value provided in an embodiment of the present application;

[0049] Figure 6 A schematic diagram of a second screening condition provided in an embodiment of the present application;

[0050] Figure 7A schematic diagram of a third task to a fourth task provided in an embodiment of the present application;

[0051] Figure 8 A flowchart of a feature branch code submission method provided in an embodiment of the present application;

[0052] Fig. 9 A structural schematic diagram of a characteristic branch pipeline configuration device provided in an embodiment of the present application;

[0053] Fig.10 A schematic diagram of the structure of a feature branch code submission device provided in an embodiment of the present application;

[0054] Fig.11 A schematic diagram of the structure of a device provided in an embodiment of the present application;

[0055] Fig.12 A schematic diagram of the structure of another device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The inventor found in the study of submitting feature branch code that the feature branch code written by the developer may have quality problems (for example, code syntax errors, etc.), so in order to ensure that the feature branch code with quality problems does not appear in the remote code configuration library, the developer can manually set the inspection process of the feature branch code, for example, manually configure the generation definition of each feature branch code in the Microsoft Visual Studio Team Foundation Server (abbreviation, TFS) tool, so that each feature branch code can be subsequently subjected to quality inspection according to the generation definition of each feature branch code in the submission process of each feature branch code. However, because it is necessary to manually configure the generation definition for each feature branch code, the quality inspection efficiency is relatively low. And because the manual configuration is prone to errors, the quality inspection result is inaccurate.

[0057] In order to solve the technical problems in the background technology part and the defects of the above-mentioned manual configuration, an embodiment of the present application provides a feature branch pipeline configuration method, which includes: receiving a feature branch pipeline configuration request triggered by a user; opening a pipeline configuration page; configuring a feature branch pipeline in the pipeline configuration page, so that the feature branch pipeline is used to record a common quality inspection process of feature branch code.

[0058] It can be seen that because the feature branch pipeline is used to record the common quality inspection process of feature branch code, the feature branch pipeline is applicable to any feature branch code, so that quality inspection can be performed according to the feature branch pipeline during the submission process of any feature branch code. This ensures that there are no quality problems with the feature branch codes successfully submitted to the remote code configuration repository, thereby ensuring that all feature branch codes stored in the remote code configuration repository are of qualified quality.

[0059] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0060] Method Example 1

[0061] See also Figure 1 , which is a flowchart of a feature branch pipeline configuration method provided in an embodiment of the present application.

[0062] The feature branch pipeline configuration method provided in the embodiment of the present application includes S101-S103:

[0063] S101: Receive a feature branch pipeline configuration request triggered by a user.

[0064] Here, users refer to people who have feature branch pipeline configuration requirements.

[0065] The feature branch pipeline configuration request is used to request the configuration of a pipeline that applies to all feature branch codes.

[0066] It should be noted that the embodiment of the present application does not limit the triggering method of the feature branch pipeline configuration request, and can be implemented using any existing or future feature branch pipeline configuration request triggering method (for example, clicking the "feature branch shared pipeline configuration button").

[0067] Based on the relevant content of S101 above, it can be known that when a user wants to configure a pipeline that can be applied to all feature branch codes, the user can trigger a feature branch pipeline configuration request so that the execution device of the feature branch pipeline configuration method can automatically configure a feature branch pipeline according to the feature branch pipeline configuration request, so that the feature branch pipeline is applicable to all feature branch codes.

[0068] S102: Open the pipeline configuration page.

[0069] The pipeline configuration page refers to a page that can be used to configure the feature branch pipeline. In addition, the present application embodiment does not limit the pipeline configuration page. For example, the pipeline configuration page can be Figure 2 The pipeline configuration page shown.

[0070] In addition, the present embodiment does not limit the structure of the pipeline configuration page. For example, the pipeline configuration page may include a task configuration subpage (such as Figure 2 The sub-pages identify the page corresponding to the "task") and the trigger configuration sub-pages (such as Figure 2 The sub-page identifies the page corresponding to the "trigger").

[0071] S103: configuring a feature branch pipeline in the pipeline configuration page, so that the feature branch pipeline is used to record a common quality inspection process of feature branch codes.

[0072] The feature branch pipeline is used to record the common quality inspection process of the feature branch code, so that the feature branch pipeline is applicable to all feature branch codes. In addition, the embodiment of the present application does not limit the common quality inspection process. For example, the common quality inspection process may include the source code acquisition process (that is, the process of acquiring the feature branch code), the code compliance inspection process, etc.

[0073] The embodiment of the present application does not limit the configuration process of the feature branch pipeline. For example, in a possible implementation, when the pipeline configuration page includes a task configuration subpage and a trigger configuration subpage, and the trigger configuration subpage includes a branch filter attribute, the configuration process of the feature branch pipeline may specifically include S103A1-S103A4:

[0074] S103A1: Add a first task in the task configuration subpage, and set the attribute of the first task to a first attribute value.

[0075] The task configuration subpage is used to add various execution tasks recorded in the feature branch pipeline (for example, a source code acquisition task, a code compliance check task, etc.). In addition, the present application embodiment does not limit the task configuration subpage. For example, the task configuration subpage can be Figure 3 The Task Configuration subpage is shown.

[0076] The first task is to obtain source code. In addition, the embodiment of the present application does not limit the first task. For example, the first task may refer to Figure 3 The Get Source task is shown as being added.

[0077] The first property value may be preset, for example, the first property value may include obtaining a property value of a source from a remote repository.

[0078] S103A2: Add a first filter condition in the branch filter attribute of the trigger configuration subpage.

[0079] The trigger configuration subpage is used to configure trigger properties; and the embodiment of the present application does not limit the trigger configuration subpage. For example, the trigger configuration subpage may include branch filter properties (that is, Figure 4 ) as shown in the branch filter.

[0080] The branch filter is used to limit the filtering condition of the source code; and the branch filter may include at least one filtering condition.

[0081] The first screening condition can be used to describe the conditions that the source code allowed to be obtained should meet; and the embodiment of the present application does not limit the first screening condition. For example, the first screening condition can be used to indicate that all source codes (such as Figure 4 The first filter condition shown).

[0082] S103A3: Update the attribute of the first task to a second attribute value.

[0083] The second attribute value may be preset, for example, the second attribute value may include obtaining a source from the project (such as Figure 5 The second attribute value shown).

[0084] S103A4: Add at least one second filter condition in the branch filter attribute of the trigger configuration subpage.

[0085] The second screening condition is used to describe the conditions that the source code that is refused to be obtained should meet; and the embodiment of the present application does not limit the second screening condition. For example, the second screening condition can be used to indicate that the long-term branch code (such as Figure 6 3 second screening conditions shown).

[0086] Based on the relevant contents of S103A1 to S103A4 above, it can be known that after opening the pipeline configuration page, you can first add a first task in the task configuration sub-page, and set the attribute of the first task to the first attribute value; then add a first filtering condition to the branch filter attribute of the trigger configuration sub-page; then, update the attribute of the first task to the second attribute value; finally, add at least one second filtering condition to the branch filter attribute of the trigger configuration sub-page.

[0087] In addition, the embodiment of the present application also provides another possible implementation of configuring a feature branch pipeline, which may specifically include S103B1-S103B5:

[0088] S103B1: Add a first task in the task configuration subpage, and set the attribute of the first task to a first attribute value.

[0089] It should be noted that the relevant content of S103B1 can be found in S103A1 above.

[0090] S103B2: Add a first filter condition in the branch filter attribute of the trigger configuration subpage.

[0091] It should be noted that the relevant content of S103B2 can be found in S103A2 above.

[0092] S103B3: Update the attribute of the first task to a second attribute value.

[0093] It should be noted that the relevant content of S103B3 can be found in S103A3 above.

[0094] S103B4: Add the second task, the third task and the fourth task in the task configuration subpage.

[0095] The second task, the third task, and the fourth task are all used to describe the functions that need to be implemented by configuring the feature branch pipeline; and the second task, the third task, and the fourth task can all be preset. For example, the second task can be Figure 7 The second task in the third task can be Figure 7 The third task in, and the fourth task can be Figure 7 The fourth task in .

[0096] S103B5: Add at least one second filter condition in the branch filter attribute of the trigger configuration subpage.

[0097] It should be noted that the relevant content of S103B5 can be found in S103A4 above.

[0098] Based on the relevant contents of S103B1 to S103B5 above, it can be known that after opening the pipeline configuration page, you can first add the first task in the task configuration sub-page, and set the attribute of the first task to the first attribute value; then add the first filtering condition in the branch filter attribute of the trigger configuration sub-page; then, update the attribute of the first task to the second attribute value; secondly, add the second task, the third task and the fourth task in the task configuration sub-page; finally, add at least one second filtering condition in the branch filter attribute of the trigger configuration sub-page.

[0099] Based on the relevant contents of S101 to S103 above, it can be known that in the feature branch pipeline configuration method provided in the embodiment of the present application, after receiving the feature branch pipeline configuration request triggered by the user, the pipeline configuration page can be opened first, and then the feature branch pipeline can be configured in the pipeline configuration page, so that the feature branch pipeline is used to record the common quality inspection process of the feature branch code, so that all feature branch codes can be quality inspected according to the feature branch pipeline in the future, and the feature branch code that passes the quality inspection can be submitted to the remote code configuration library for storage, so that the feature branch code to be submitted can be automatically submitted to the remote code configuration library.

[0100] It can be seen that because the feature branch pipeline is used to record the common quality inspection process of feature branch code, the feature branch pipeline is applicable to any feature branch code, so that quality inspection can be performed according to the feature branch pipeline during the submission process of any feature branch code. This ensures that there are no quality problems with the feature branch codes successfully submitted to the remote code configuration repository, thereby ensuring that all feature branch codes stored in the remote code configuration repository are of qualified quality.

[0101] In addition, after the feature branch pipeline is configured, the feature branch pipeline can be used to perform quality checks on all feature branch codes. Based on this, the embodiment of the present application also provides a feature branch code submission method, which is described below in conjunction with the accompanying drawings.

[0102] Method Example 2

[0103] See also Figure 8 , which is a flowchart of a feature branch code submission method provided in an embodiment of the present application.

[0104] The feature branch code submission method provided in the embodiment of the present application includes S801-S805:

[0105] S801: Receive a feature branch code submission request triggered by a user.

[0106] Among them, the feature branch code submission request is used to request to submit N feature branch codes to the remote code configuration library, and N is a positive integer.

[0107] It should be noted that the embodiment of the present application does not limit the number of feature branch codes, and the number of feature branch codes may refer to the number of feature branch codes stored in the user device used by the user for encoding. For example, if the user writes N feature branch codes, then the user device used by the user for encoding stores N feature branch codes, so the number of feature branch codes is N.

[0108] In addition, the remote code configuration library is used to store GIT branch codes.

[0109] S802: Perform a quality check on the i-th feature branch code according to the pre-configured feature branch pipeline to obtain an i-th quality check result, where i is a positive integer, i≤N.

[0110] The characteristic branch pipeline is configured using any implementation of the characteristic branch pipeline configuration method provided in the embodiments of the present application.

[0111] In addition, the feature branch pipeline may include multiple tasks, for example, the feature branch pipeline may include a task of obtaining all feature branch codes from a user device used by a user when coding and a task of performing quality checks on all feature branch codes. Among them, the "quality check" may include code compliance checks, etc.

[0112] The i-th quality inspection result is used to describe whether the i-th feature branch code meets the preset quality standard. The preset quality standard can be set in advance.

[0113] Based on the relevant content of S802 above, it can be known that after receiving the feature branch code submission request triggered by the user, the execution device of the feature branch code submission method can perform a quality check on the i-th feature branch code according to the pre-configured feature branch pipeline, and the quality check process can be specifically as follows: first obtain the i-th feature branch code from the user device used by the user when encoding, and then perform a quality check on the i-th feature branch code respectively to obtain the i-th quality check result, so that the i-th quality check result can accurately indicate whether the i-th feature branch code meets the preset quality standards.

[0114] S803: When it is determined that the i-th quality check result meets the preset submission condition, the i-th feature branch code to be submitted is submitted to the remote code configuration library.

[0115] The preset submission condition may be preset, for example, the preset submission condition may refer to the quality inspection result reaching a preset quality standard.

[0116] In an embodiment of the present application, after obtaining the i-th quality check result, it can be determined whether the i-th quality check result meets the preset submission conditions; if so, it means that the i-th feature branch code meets the preset quality standards, thereby indicating that the i-th feature branch code does not have defects, so the i-th feature branch code can be directly submitted to the remote code configuration library for storage, so that other people can obtain the i-th feature branch code from the remote code configuration library in the future; if not, it means that the i-th feature branch code does not meet the preset quality standards, thereby indicating that the i-th feature branch code has defects, so an alarm message indicating that the i-th feature branch code has defects can be generated, so that the developer can improve the i-th feature branch code according to the alarm message.

[0117] Based on the relevant contents of S801 to S803 above, it can be known that in the feature branch code submission method provided in the embodiment of the present application, after receiving the feature branch code submission request triggered by the user, N feature branch codes can be obtained according to the pre-configured feature branch pipeline and the N feature branch codes can be quality checked respectively to obtain N quality inspection results; then, according to the N quality inspection results, it is determined whether to submit the N feature branch codes to the remote code configuration library. Among them, because the feature branch pipeline is used to record the common quality inspection process of the feature branch code, the feature branch pipeline is applicable to any feature branch code, so that in the submission process of any feature branch code, the quality inspection can be performed according to the feature branch pipeline, so that the feature branch code successfully submitted to the remote code configuration library does not have any quality problems, so that it can be ensured that all feature branch codes stored in the remote code configuration library are qualified quality codes.

[0118] Based on the characteristic branch pipeline configuration method provided by the above method embodiment, the embodiment of the present application also provides a characteristic branch pipeline configuration device, which is explained and illustrated in conjunction with the accompanying drawings below.

[0119] Device Example 1

[0120] For technical details of the characteristic branch pipeline configuration device provided in device embodiment 1, please refer to the above method embodiment.

[0121] See also Fig. 9 , which is a structural schematic diagram of a characteristic branch pipeline configuration device provided in an embodiment of the present application.

[0122] The characteristic branch pipeline configuration device 900 provided in the embodiment of the present application includes:

[0123] A first receiving unit 901 is configured to receive a feature branch pipeline configuration request triggered by a user;

[0124] A page opening unit 902, used to open a pipeline configuration page;

[0125] The pipeline configuration unit 903 is used to configure the feature branch pipeline in the pipeline configuration page so that the feature branch pipeline is used to record the common quality inspection process of the feature branch code.

[0126] In a possible implementation, when the pipeline configuration page includes a task configuration subpage and a trigger configuration subpage, and the trigger configuration subpage includes a branch filter attribute, the pipeline configuration unit 903 includes:

[0127] A first configuration subunit, configured to add a first task in the task configuration subpage, and set an attribute of the first task to a first attribute value;

[0128] A second configuration subunit is used to add a first filtering condition to the branch filter attribute of the trigger configuration subpage;

[0129] A third configuration subunit, configured to update the attribute of the first task to a second attribute value;

[0130] The fourth configuration subunit is used to add at least one second filtering condition in the branch filter attribute of the trigger configuration subpage.

[0131] In a possible implementation manner, the pipeline configuration unit 903 further includes:

[0132] The fifth configuration subunit is used to add a second task, a third task and a fourth task in the task configuration subpage.

[0133] Based on the relevant content of the above-mentioned feature branch pipeline configuration device 900, it can be known that for the feature branch pipeline configuration device 900, after receiving the feature branch pipeline configuration request triggered by the user, the pipeline configuration page can be opened first, and then the feature branch pipeline can be configured in the pipeline configuration page, so that the feature branch pipeline is used to record the common quality inspection process of the feature branch code, so that all feature branch codes can be quality checked according to the feature branch pipeline in the future, and the feature branch code that passes the quality inspection can be submitted to the remote code configuration library for storage, so that the feature branch code to be submitted can be automatically submitted to the remote code configuration library.

[0134] It can be seen that because the feature branch pipeline is used to record the common quality inspection process of feature branch code, the feature branch pipeline is applicable to any feature branch code, so that quality inspection can be performed according to the feature branch pipeline during the submission process of any feature branch code. This ensures that there are no quality problems with the feature branch codes successfully submitted to the remote code configuration repository, thereby ensuring that all feature branch codes stored in the remote code configuration repository are of qualified quality.

[0135] Based on the feature branch code submission method provided by the above method embodiment, the embodiment of the present application also provides a feature branch code submission device, which is explained and illustrated in conjunction with the accompanying drawings below.

[0136] Device Example 2

[0137] For technical details of the feature branch code submission device provided in device embodiment 2, please refer to the above method embodiment.

[0138] See also Fig.10 , which is a structural diagram of a feature branch code submission device provided in an embodiment of the present application.

[0139] The feature branch code submission device 1000 provided in the embodiment of the present application includes:

[0140] The second receiving unit 1001 is used to receive a feature branch code submission request triggered by a user; wherein the feature branch code submission request is used to request submission of N feature branch codes to a remote code configuration repository; N is a positive integer;

[0141] The quality inspection unit 1002 is used to perform a quality inspection on the i-th feature branch code according to a pre-configured feature branch pipeline to obtain an i-th quality inspection result; wherein the feature branch pipeline is configured using the feature branch pipeline configuration method according to claim 1 or 2; wherein i is a positive integer, i≤N;

[0142] The code submission unit 1003 is used to submit the i-th feature branch code to be submitted to the remote code configuration library when it is determined that the i-th quality inspection result meets the preset submission condition.

[0143] Based on the above-mentioned relevant contents of the feature branch code submission device 1000, it can be known that for the feature branch code submission device 1000, after receiving the feature branch code submission request triggered by the user, N feature branch codes can be obtained according to the pre-configured feature branch pipeline and the N feature branch codes can be quality checked respectively to obtain N quality check results; then, according to the N quality check results, it is determined whether to submit the N feature branch codes to the remote code configuration library. Among them, because the feature branch pipeline is used to record the common quality inspection process of the feature branch code, the feature branch pipeline is applicable to any feature branch code, so that in the submission process of any feature branch code, the quality inspection can be performed according to the feature branch pipeline, so that the feature branch code successfully submitted to the remote code configuration library does not have any quality problems, so that it can be ensured that all feature branch codes stored in the remote code configuration library are qualified codes.

[0144] Based on the characteristic branch pipeline configuration method provided by the above method embodiment, the embodiment of the present application also provides a device, which is explained and illustrated below in conjunction with the accompanying drawings.

[0145] Device Example 1

[0146] For technical details of the device provided in the device embodiment, please refer to the above method embodiment.

[0147] See also Fig.11 , which is a structural schematic diagram of a device provided in an embodiment of the present application.

[0148] The device 1100 provided in the embodiment of the present application includes: a processor 1101 and a memory 1102;

[0149] The memory 1102 is used to store computer programs;

[0150] The processor 1101 is used to execute any implementation of the feature branch pipeline configuration method provided by the above method embodiment according to the computer program. That is, the processor 1101 is used to execute the following steps:

[0151] Receive feature branch pipeline configuration requests triggered by users;

[0152] Open the pipeline configuration page;

[0153] The feature branch pipeline is configured in the pipeline configuration page so that the feature branch pipeline is used to record the common quality inspection process of the feature branch code.

[0154] In a possible implementation, when the pipeline configuration page includes a task configuration subpage and a trigger configuration subpage, and the trigger configuration subpage includes a branch filter attribute, configuring the feature branch pipeline in the pipeline configuration page includes:

[0155] Adding a first task in the task configuration subpage, and setting an attribute of the first task to a first attribute value;

[0156] Adding a first filter condition in the branch filter attribute of the trigger configuration subpage;

[0157] Updating the attribute of the first task to a second attribute value;

[0158] At least one second filter condition is added in the branch filter attribute of the trigger configuration subpage.

[0159] In a possible implementation manner, after updating the attribute of the first task to a second attribute value, the method further includes:

[0160] Add the second task, the third task and the fourth task in the task configuration subpage.

[0161] The above is the relevant content of the device 1100 provided in the embodiment of the present application.

[0162] Based on the feature branch code submission method provided by the above method embodiment, the embodiment of the present application also provides a device, which is explained and illustrated below in conjunction with the accompanying drawings.

[0163] Device Example 2

[0164] For technical details of the device provided in the device embodiment, please refer to the above method embodiment.

[0165] See also Fig.12 , which is a schematic diagram of the structure of another device provided in an embodiment of the present application.

[0166] The device 1200 provided in the embodiment of the present application includes: a processor 1201 and a memory 1202;

[0167] The memory 1202 is used to store computer programs;

[0168] The processor 1201 is used to execute any implementation of the feature branch code submission method provided by the above method embodiment according to the computer program. That is, the processor 1201 is used to execute the following steps:

[0169] Receive a feature branch code submission request triggered by a user; wherein the feature branch code submission request is used to request submission of N feature branch codes to a remote code configuration repository; N is a positive integer;

[0170] Performing a quality check on the i-th feature branch code according to a pre-configured feature branch pipeline to obtain an i-th quality check result; wherein the feature branch pipeline is configured using the feature branch pipeline configuration method described in claim 1 or 2; wherein i is a positive integer, i≤N;

[0171] When it is determined that the i-th quality inspection result meets the preset submission condition, the i-th feature branch code to be submitted is submitted to the remote code configuration library.

[0172] The above is the relevant content of the device 1200 provided in the embodiment of the present application.

[0173] Based on the characteristic branch pipeline configuration method provided by the above method embodiment, the embodiment of the present application also provides a computer-readable storage medium.

[0174] Medium Example 1

[0175] For technical details of the computer-readable storage medium provided by the medium embodiment, please refer to the method embodiment.

[0176] The embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute any implementation of the feature branch pipeline configuration method provided in the above method embodiment. That is, the computer program is used to execute the following steps:

[0177] Receive feature branch pipeline configuration requests triggered by users;

[0178] Open the pipeline configuration page;

[0179] The feature branch pipeline is configured in the pipeline configuration page so that the feature branch pipeline is used to record the common quality inspection process of the feature branch code.

[0180] In a possible implementation, when the pipeline configuration page includes a task configuration subpage and a trigger configuration subpage, and the trigger configuration subpage includes a branch filter attribute, configuring the feature branch pipeline in the pipeline configuration page includes:

[0181] Adding a first task in the task configuration subpage, and setting an attribute of the first task to a first attribute value;

[0182] Adding a first filter condition in the branch filter attribute of the trigger configuration subpage;

[0183] Updating the attribute of the first task to a second attribute value;

[0184] At least one second filter condition is added in the branch filter attribute of the trigger configuration subpage.

[0185] In a possible implementation manner, after updating the attribute of the first task to a second attribute value, the method further includes:

[0186] Add the second task, the third task and the fourth task in the task configuration subpage.

[0187] The above is the relevant content of the computer-readable storage medium provided in the embodiments of the present application.

[0188] Based on the XXX method provided in the above method embodiment, the embodiment of the present application also provides a computer-readable storage medium.

[0189] Medium Example 2

[0190] For technical details of the computer-readable storage medium provided by the medium embodiment, please refer to the method embodiment.

[0191] The embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute any implementation of the XXX method provided in the above method embodiment. In other words, the computer program is used to execute the following steps:

[0192] Receive a feature branch code submission request triggered by a user; wherein the feature branch code submission request is used to request submission of N feature branch codes to a remote code configuration repository; N is a positive integer;

[0193] Performing a quality check on the i-th feature branch code according to a pre-configured feature branch pipeline to obtain an i-th quality check result; wherein the feature branch pipeline is configured using the feature branch pipeline configuration method described in claim 1 or 2; wherein i is a positive integer, i≤N;

[0194] When it is determined that the i-th quality inspection result meets the preset submission condition, the i-th feature branch code to be submitted is submitted to the remote code configuration library.

[0195] The above is the relevant content of the computer-readable storage medium provided in the embodiments of the present application.

[0196] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0197] The above is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as above in the preferred embodiment, it is not used to limit the present invention. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.

Claims

1. A feature branch pipeline configuration method, It is characterized in that The method comprises: Receive feature branch pipeline configuration requests triggered by users; Open the pipeline configuration page; Configuring a feature branch pipeline in the pipeline configuration page so that the feature branch pipeline is used to record a common quality inspection process of feature branch codes; Wherein, when the pipeline configuration page includes a task configuration subpage and a trigger configuration subpage, and the trigger configuration subpage includes a branch filter attribute, configuring the feature branch pipeline in the pipeline configuration page includes: Adding a first task in the task configuration subpage, and setting an attribute of the first task to a first attribute value; Adding a first filtering condition in the branch filter attribute of the trigger configuration subpage; the first filtering condition is used to describe the conditions that the source code allowed to be obtained should meet; Updating the attribute of the first task to a second attribute value; Add the second task, the third task and the fourth task in the task configuration subpage; At least one second filter condition is added to the branch filter attribute of the trigger configuration subpage; the second filter condition is used to describe the conditions that the source code that is refused to be obtained should meet.

2. A feature branch pipeline configuration device, It is characterized in that The device comprises: A first receiving unit, configured to receive a feature branch pipeline configuration request triggered by a user; A page opening unit, used to open the pipeline configuration page; A pipeline configuration unit, configured to configure a feature branch pipeline in the pipeline configuration page, so that the feature branch pipeline is used to record a common quality inspection process of feature branch codes; Wherein, when the pipeline configuration page includes a task configuration subpage and a trigger configuration subpage, and the trigger configuration subpage includes a branch filter attribute, the pipeline configuration unit includes: A first configuration subunit, configured to add a first task in the task configuration subpage, and set an attribute of the first task to a first attribute value; A second configuration subunit is used to add a first filtering condition in the branch filter attribute of the trigger configuration subpage; the first filtering condition is used to describe the conditions that the source code allowed to be obtained should meet; A third configuration subunit, configured to update the attribute of the first task to a second attribute value; A fourth configuration subunit is used to add at least one second filtering condition in the branch filter attribute of the trigger configuration subpage; the second filtering condition is used to describe the conditions that the source code that is refused to be obtained should meet; The fifth configuration subunit is used to add a second task, a third task and a fourth task in the task configuration subpage.

3. A device, It is characterized in that The device comprises a processor and a memory: The memory is used to store computer programs; The processor is used to execute the feature branch pipeline configuration method of claim 1 according to the computer program.

4. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the feature branch pipeline configuration method described in claim 1.