English | 简体中文
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。
This project use python3. Go check them out if you don't have them locally installed.
$ python -V
Python 3.9.1Then, 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.gitInstall dependencies.
$ pip3 install -r requirements.txtNow! 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....
}Feel free to dive in! Open an issue or submit PRs.
This project is licensed under the MIT License - see the LICENSE file for details.