CN-113867691-B - Development management method, platform and storage medium
Abstract
The embodiment of the application discloses a development management method, which comprises the steps of obtaining a first remote main branch of an object to be developed from a distributed version control system GIT remote platform if a target development instruction is detected, updating a local main branch of the object to be developed based on the first remote main branch to obtain a target main branch, determining a version identification to be developed of the object to be developed, obtaining a target node corresponding to the version identification to be developed from the target main branch, determining target development requirements, and creating a first target development branch which corresponds to the version identification to be developed and realizes the target development requirements according to a preset development branch naming specification based on the target node so as to execute target development operation through the first target development branch. The embodiment of the application also discloses a development management platform and a storage medium.
Inventors
- LAI RUIFENG
- LIN TING
- WAN CHUN
Assignees
- 深圳前海微众银行股份有限公司
- 深圳前海微众银行股份有限公司
Dates
- Publication Date
- 20260421
- Application Date
- 20210914
- Priority Date
- 20210914
Claims (11)
- 1. A method of development management, the method comprising: If a target development instruction is detected, acquiring a first remote main branch of an object to be developed from a distributed version control system GIT remote platform; Updating the local main branch of the object to be developed based on the first remote main branch to obtain a target main branch; determining a to-be-developed version identifier of the to-be-developed object; acquiring a target node corresponding to the version identifier to be developed from the target main branch; determining target development requirements; creating a first target development branch which corresponds to the version identification to be developed and meets the target development requirement according to a preset development branch naming specification based on the target node, so as to execute target development operation through the first target development branch; If a target submitting instruction for indicating to submit identification information for target development operation aiming at the first target development branch is detected, generating first prompt information for prompting to input the identification information, and displaying the first prompt information; if the target identification information is detected and matched with the preset identification information, submitting the target identification information and target content corresponding to the target development operation to a temporary storage area; If the merging request corresponding to the version identifier to be developed is queried to exist, a target auditing instruction is sent to a target management node corresponding to a target user identifier, wherein the target auditing instruction is used for indicating to audit the target content; If the indication information which is sent by the target management node and used for indicating that the target content passes the inspection is detected, responding to the merging request, merging the first target development branch to a reference test branch corresponding to the merging request to obtain a target test branch, wherein the target test branch corresponding to the version identification to be developed only comprises one test branch; Based on the target test branch, a test operation for the target content is performed.
- 2. The method according to claim 1, wherein the method further comprises: If the merging request is not queried, and the reference test branch corresponding to the version identification to be developed exists, generating the merging request based on the reference test branch; sending the target auditing instruction to the target management node; if the indication information sent by the target management node is detected, responding to the merging request, merging the first target development branch to the reference test branch to obtain a target test branch; Based on the target test branch, a test operation for the target content is performed.
- 3. The method according to claim 1, wherein the method further comprises: if the merging request is not queried and the reference test branch corresponding to the version identification to be developed is not queried, creating the reference test branch corresponding to the version identification to be developed; generating the merge request based on the reference test branch; sending the target auditing instruction to the target management node; if the indication information is detected, responding to the merging request, merging the first target development branch to the reference test branch to obtain a target test branch; Based on the target test branch, a test operation for the target content is performed.
- 4. A method according to any one of claims 1 to 3, further comprising: During the execution of the test operation for the target content, if the target content needs to be modified, receiving a modification operation based on the first target development branch; updating the target development operation to the modification operation; And repeatedly executing the step of generating first prompt information for prompting to input the identification information and displaying the first prompt information until the step of executing the test operation on the target content is executed if a target submitting instruction for indicating to submit the identification information for performing the target development operation on the first target development branch is detected.
- 5. The method according to claim 1, wherein the method further comprises: If the reference development branches corresponding to the at least two reference development requirements included in the version identification to be developed pass the test, determining a second target development branch corresponding to the target release requirement from the reference development branches corresponding to the at least two reference development requirements, wherein the target release requirement belongs to the at least two reference development requirements; Deleting the current testing branch corresponding to the version identifier to be developed currently; creating a reference test branch corresponding to the version identifier to be developed; And merging the second target development branch to the reference test branch to obtain a target test branch.
- 6. A method according to any one of claims 1 to 3, 5, further comprising: If a production packaging instruction corresponding to the version identification to be developed is detected, a second remote main branch is obtained from the GIT remote platform, wherein the second remote main branch has an association relation with the first remote main branch; synchronizing the first distribution branch with the second remote main branch; merging the target test branch to the first issuing branch to obtain a second issuing branch; pushing the second release branch to a remote warehouse; And if the target issuing instruction is detected, merging the second issuing branch to the second remote main branch.
- 7. The method of claim 6, wherein, after merging the second issue branch to the second remote main branch if a target issue instruction is detected, the method further comprises: If a target log generation instruction is detected, generating modification log information aiming at the target content; creating a target version identifier of the version to be developed; pushing the second remote primary branch and the target version identification to a remote repository.
- 8. The method of claim 7, wherein after pushing the second remote primary branch and the target version identification to a remote repository, the method further comprises: If a target cleaning instruction is detected, displaying the to-be-cleaned test branch identification information and the to-be-cleaned development branch identification information; And if the target cleaning test branch identification information and the target cleaning development branch identification information are detected, deleting the test branch corresponding to the target cleaning test branch identification information and the development branch corresponding to the target cleaning development branch identification information.
- 9. The method of claim 1, wherein if the target development instruction is detected, before the first remote main branch of the object to be developed is obtained from the distributed version control system GIT remote platform, the method further comprises: if a target initialization instruction is detected, acquiring a GIT authorization code; if the platform authorization code is associated with the demand platform, acquiring a platform authorization code corresponding to the demand platform; And if the GIT authorization code and the platform authorization code are both valid, setting the GIT authorization code and the platform authorization code as user configuration parameters, wherein the GIT authorization code is used for establishing communication connection with a GIT remote platform, and the platform authorization code is used for establishing communication connection with the demand platform.
- 10. The development management platform is characterized by comprising a storage space and at least one development management node, wherein: The development management node is configured to execute a development management program stored in the storage space to implement the steps of the development management method according to any one of claims 1 to 9.
- 11. A storage medium having stored thereon a development management program which, when executed by a processor, implements the steps of the development management method of any one of claims 1 to 9.
Description
Development management method, platform and storage medium Technical Field The application relates to the technical field of World Wide Web (Web) front ends, in particular to a development management method, a platform and a storage medium. Background With the rapid development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually changed to the financial technology (Fintech), but due to the requirements of safety and real-time performance of the financial industry, higher requirements are also put on the technologies. With the rapid development of internet technology, various application programs are gradually developed and applied, and development tools provided for developers are also various in order to improve the development efficiency of the developers. Currently, developers commonly use a distributed version control system (GIT) to develop, wherein the GIT mainly has two workflow modes, one is to take a main (Master) branch as a test branch, combine all function (Feature) branches and repair (Fix) branches into the Master branch, then detect a Release (Release) branch from the Master branch at a certain time node to issue to a production environment, the other is to take a Master branch as a production environment synchronization branch, always keep the latest modified branch, the developer can detect a plurality of Feature branches or Fix branches from the Master branch under the same version, combine the Release branches corresponding to the version after the development is completed, test and issue the Release branches, and submit the Release branches back to the Master branch after the Release is completed. At present, when the workflow is developed, any branch can be used for creating the development, so that the purposes of each branch of the workflow are not clear, the online modification of a certain time is easily omitted, and the success rate of the workflow development process cannot be guaranteed. Content of the application In order to solve the technical problems, the embodiment of the application expects to provide a development management method, a platform and a storage medium, solves the problem that a developer can adopt any branch to create demand development at present, and the multi-branch use is ambiguous, realizes the creation of the demand development branch through the main branch, effectively avoids the condition that modification is easy to be omitted when the demand development branch is created through other branches, and improves the workflow development success rate. The technical scheme of the application is realized as follows: In a first aspect, a development management method, the method comprising: If a target development instruction is detected, acquiring a first remote main branch of an object to be developed from a distributed version control system GIT remote platform; Updating the local main branch of the object to be developed based on the first remote main branch to obtain a target main branch; determining a to-be-developed version identifier of the to-be-developed object; acquiring a target node corresponding to the version identifier to be developed from the target main branch; determining target development requirements; And creating a first target development branch which corresponds to the version identification to be developed and meets the target development requirement according to a preset development branch naming specification based on the target node, so as to execute target development operation through the first target development branch. In a second aspect, a development management platform includes a storage space and at least one development management node, wherein: The development management node is configured to execute a development management program stored in the storage space, so as to implement the steps of the development management method according to any one of the above. In a third aspect, a storage medium has stored thereon a development management program that, when executed by a processor, implements the steps of the development management method as described in any of the above. In the embodiment of the application, if a target development instruction is detected, a first remote main branch of an object to be developed is acquired from a distributed version control system GIT remote platform, a local main branch of the object to be developed is updated based on the first remote main branch, a version identifier of the object to be developed is determined after the target main branch is acquired, a target node corresponding to the version identifier to be developed is acquired from the target main branch, and after a target development requirement is determined, a first target development branch which corresponds to the version identifier to be developed and is used for realizing the target development requirement is created based on the targ