An open API service indexing awesome lists of open source software.

https://github.com/racklin/gitlab-stat

gitlab-stat gets commits for all users on gitlab.
https://github.com/racklin/gitlab-stat

Last synced: about 1 year ago
JSON representation

gitlab-stat gets commits for all users on gitlab.

Awesome Lists containing this project

README

          

# gitlab-stat
gitlab-stat gets commits for all users on gitlab.

## Settings
1. Edit `config/gitlabstat.php` for your url,token and timezone.
```php
'', // your self-hosting gitlab or empty for gitlab.com
'gitlab_token' => '', // your gitlab api token
'timezone' => 'Asia/Shanghai'
];
```

## From source code
Execute `gitlab-stat fetch` or `php gitlab-stat fetch`.

With first parameter can be used to specify a processing date, default value is yesterday.
Ex: `gitlab-stat fetch 2021-09-01`

## From PHAR
You can using `--config` option to specify config file.
For example:
`./gitlab-stat fetch --config=/home/rack/gitlabstat.php`.

## Usage Demo


Gen Gitlab Stat [2021-09-05]
251/251 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% -- [ user_id = 9]
Total = [44]
Save to [result_2021-09-05.json]
Save to [result_2021-09-05.sql]

------

## Framework
For full documentation, visit [laravel-zero.com](https://laravel-zero.com/).