Search

CN-121997353-A - Application method of code warehouse management authority, electronic equipment, medium and product

CN121997353ACN 121997353 ACN121997353 ACN 121997353ACN-121997353-A

Abstract

The present application relates to the field of computer technologies, and in particular, to a method for applying code warehouse management rights, an electronic device, a medium, and a product. The method comprises the steps of receiving identification information of an object code warehouse, inquiring personnel change information corresponding to the object code warehouse based on the identification information, wherein the personnel change information indicates an administrator of the object code warehouse to update from a first administrator to a second administrator, and generating authority application information of the object code warehouse based on the personnel change information, wherein the authority application information is used for applying management authority of the object code warehouse to the second administrator. The administrator of the target code warehouse is determined by inquiring the personnel change information, so that the problem that the administrator of the inquired target code warehouse is wrong due to personnel change can be avoided, and the situation that a user cannot apply the management authority of the target code warehouse to a correct administrator is avoided.

Inventors

  • Guo Zewei

Assignees

  • 智驾大陆(上海)智能科技有限公司

Dates

Publication Date
20260508
Application Date
20251222

Claims (10)

  1. 1. A method for applying code warehouse management rights, characterized in that it is applied to an electronic device, the method comprising: Receiving identification information of an object code warehouse; Inquiring personnel change information corresponding to the target code warehouse based on the identification information, wherein the personnel change information indicates that an administrator of the target code warehouse is updated from a first administrator to a second administrator; And generating authority application information of the target code warehouse based on the personnel change information, wherein the authority application information is used for applying the management authority of the target code warehouse to the second manager.
  2. 2. The method of claim 1, wherein generating rights application information for the object code repository based on the personnel change information comprises: inquiring account information of the second administrator; And generating the permission application information according to the identification information and the account information of the second administrator.
  3. 3. The method of claim 2, wherein the account information comprises an account name and/or an account number.
  4. 4. The method of claim 1, wherein the querying the object code repository for personnel change information based on the identification information comprises: And inquiring first warehouse information of the target code warehouse from a code warehouse management file based on the identification information, wherein the first warehouse information indicates that an administrator of the target code warehouse is the first administrator.
  5. 5. The method according to claim 4, wherein the method further comprises: And updating the first warehouse information into second warehouse information, wherein the second warehouse information indicates that an administrator of the target code warehouse is the second administrator.
  6. 6. The method according to any one of claims 1 to 5, wherein the identification information comprises a path address, a warehouse name, a warehouse number and/or a warehouse type.
  7. 7. The method of any of claims 1-5, wherein the personnel change information comprises personnel off-job handoff information or personnel on-Shift handoff information.
  8. 8. An electronic device, comprising: A memory for storing instructions; a processor, which when executing the instructions in the memory, causes the electronic device to execute the method for applying code warehouse management rights as claimed in any one of claims 1 to 7.
  9. 9. A computer readable storage medium having stored thereon instructions that when executed on a computer cause the computer to perform the method of applying code warehouse management rights of any of claims 1 to 7.
  10. 10. A computer program product comprising program code which, when executed by a computer or processor, causes the computer or processor to perform the method of applying code warehouse management rights of any of claims 1 to 7.

Description

Application method of code warehouse management authority, electronic equipment, medium and product Technical Field The present application relates to the field of computer technologies, and in particular, to a method for applying code warehouse management rights, an electronic device, a medium, and a product. Background To facilitate the management and development of program code, developers may upload program code to a code management platform (e.g., gitHub, gitLab, etc.) for management. For example, as shown in fig. 1, a developer may upload developed program codes to a code repository of a code management platform on a server 200 through an electronic device 100 for management. Wherein each code repository has at least one administrator. To ensure the security of the code repository, other developers need to apply management rights to the administrator of the code repository to operate on the program code stored in the code repository, such as modification, copying, updating, and the like. In order to facilitate the user to apply for the management authority of the code warehouse, some electronic devices can automatically query the administrator of the code warehouse according to the information of the path, the name, the type and the like of the code warehouse input by the user, without manual query of the user. In some cases, however, an administrator of the code repository queried by the electronic device has errors, resulting in an error in the application object of the management authority of the code repository, and thus, the user cannot apply for the management authority of the code repository. Disclosure of Invention The embodiment of the application provides a method, electronic equipment, medium and product for applying code warehouse management authority, which are used for solving the problem that a manager of a code warehouse queried by a user can not apply the code warehouse management authority due to errors. In a first aspect, an embodiment of the present application provides a method for applying code warehouse management rights, applied to an electronic device, where the method includes receiving identification information of a target code warehouse; and generating authority application information of the target code warehouse based on the personnel change information, wherein the authority application information is used for applying the management authority of the target code warehouse to the second manager. After receiving the identification information of the target code warehouse, the electronic equipment inquires personnel change information corresponding to the target code warehouse based on the identification information, and generates authority application information of the target code warehouse based on the personnel change information under the condition that the personnel change information indicates that an administrator of the target code warehouse is updated from a first administrator to a second administrator, so as to apply the management authority of the target code warehouse to the second administrator, thereby avoiding the problem that the inquired administrator of the target code warehouse is wrong due to personnel change, and further avoiding that a user cannot apply the management authority of the target code warehouse to the correct administrator. In some embodiments, generating the rights application information for the object code repository based on the personnel change information includes querying account information for the second administrator, and generating the rights application information based on the identification information and the account information for the second administrator. After the electronic device queries that the administrator of the object code warehouse is updated from the first administrator to the second administrator based on the personnel change information, the electronic device can query account information of the second administrator, and then generates authority application information for applying the management authority of the object code warehouse to the second administrator based on the identification information of the object code warehouse and the account information of the second administrator. The authority application information is generated based on the identification information of the target code warehouse and the account information of the second administrator, so that the accuracy of the authority application information such as an application object and the code warehouse to be applied can be ensured. In some embodiments, the account information includes an account name and/or an account number. And generating the authority application information of the target code warehouse based on the account name and/or the account number of the second administrator, so that the accuracy of the application object in the generated authority application information can be ensured. In some embodiments, querying the code r