Skip to content

一个基于Python3+Flask的gitlab issues spend time统计项目

License

Notifications You must be signed in to change notification settings

ycyin/gitlab-issue-spend-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 简体中文

gitlab-issue-spend-time


MIT 34782655

Introductions

A gitlab issues spend time statistical project based on Python3+Flask. By requesting the gitlab API, obtain the issue notes data in gitlab and encapsulate it in the format you need, and finally provide a data interface.

❗❗ Currently only supports statistics of spend with h as the unit, such as:/spend 7h

Install

This project use python3. Go check them out if you don't have them locally installed.

$ python -V
Python 3.9.1

Then, use the git clone git@github.com:yinyicao/gitlab-issue-spend-time.git command or click here to download the project.

$ git clone git@github.com:yinyicao/gitlab-issue-spend-time.git

Install dependencies.

$ pip3 install -r requirements.txt

Usage

Now! You can start the project with main.py.

$ python main.py

🎯Request:

GET:http://127.0.0.1:5000/getDatas (return json of dict)or/spendTimeDatas(return json of list).

🎯Response:

{
  "2021-01-05": [
    {
      "name": "zs",
      "avatar_url": "https://avatar-stl.gitlab.com/email/zhangshan/avatar.png",
      "time": 7
    },
    {
      "name": "ls",
      "avatar_url": "https://avatar-stl.gitlab.com/email/lisi/avatar.png",
      "time": 7
    }
  ],
  "2021-01-06": [
      //more...
  ],
  //more....
}

Contributing

Feel free to dive in! Open an issue or submit PRs.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

一个基于Python3+Flask的gitlab issues spend time统计项目

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages