Code workload statistical method, device and equipment

A statistical method and workload technology, which is applied in computing, instruments, software maintenance/management, etc., can solve the problem of repeated counting of code workload to the user name, and achieve the effect of avoiding repeated counting and improving accuracy

CN114138320APending Publication Date: 2022-03-04北京自如信息科技有限公司
0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2022-03-04

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a code workload statistical method, device and equipment, and the method comprises the steps: obtaining a target data list in a target time period, the target data list comprises commit data submitted by a user, and the commit data at least comprises commit id and submission time; the first type of repeated commit data in the target data list is deleted, commit in the first type of repeated commit data is not unique in the target data list, and the submission time of the first type of repeated commit data is not earliest compared with the commit data with the same commit; and counting the code workload of each user in the target time period based on the commit data in the deleted target data list. According to the technical scheme provided by the invention, repeated statistics of the code workload can be avoided, and the statistical accuracy of the user code workload is improved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of program development, in particular to a code workload statistics method, device and equipment. Background technique

[0002] Code volume statistics are one of the important indicators used in many companies to measure the workload of an employee, a team, or a department. By counting the amount of code, we can have a reliable evaluation index for an employee's contribution to the team, so as to better measure the performance of an employee. At this stage, the code management of most companies is carried out through Gitlab. The method of counting the code workload is to make a simple code volume statistics of additions, deletions and modifications through the GitLab interface. By calling the GitLab interface, first obtain all the projects visible to the user. Then obtain the branch list of all projects, then traverse the branches and obtain the commits data of the code according to the branch name, and finally obtai...

Examples

Embodiment Construction

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments It is some embodiments of the present invention, but not all of them. Based on the implementation manners in the present invention, all other implementation manners obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

[0025] see figure 1 and figure 2 , in one embodiment, a code workload statistics method specifically includes the following steps:

[0026] Step S101: Obtain a target data list within a target time period, the target data list includes commits data submitted by users, and the commits data includes at least a commit id and a commit...