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.
- Host: GitHub
- URL: https://github.com/racklin/gitlab-stat
- Owner: racklin
- Created: 2021-09-07T05:27:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-25T08:46:15.000Z (over 4 years ago)
- Last Synced: 2025-04-12T21:59:09.492Z (about 1 year ago)
- Language: PHP
- Size: 30.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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/).