| Metric Name | Description |
|---|---|
| Pull Request Count | Number of Pull/Merge Requests |
| Pull Request Pass Rate | Ratio of Pull/Merge Review requests to merged |
| Pull Request Reviewer Count | Number of Pull/Merge Reviewers |
| Pull Request Review Time | Time from the first Pull/Merge Review comment until merged |
| Commit Author Count | Number of Contributors |
| Commit Count | Number of Commits |
| Added Lines | Accumulated Number of New Lines |
| Deleted Lines | Accumulated Number of Removed Lines |
First, you have to configure lake/config/plugins.js.
cp config/plugins.sample.js config/plugins.jscat config/plugins.jsOnce you have lake running, you can fetch information from Github in one two ways:
{
"gitlab": {
"projectId": 8967944,
"branch": "<your-branch-name>", (Optional, default branch is used)
}
}
Note: the following instructions are for User Setup. For Developer Setup, simply replace config/docker.sample.js and config/docker.js with config/local.sample.js and config/local.js.
config/docker.js. You can create one from the sample file: cp config/docker.sample.js config/docker.jsvi config/local.jsgitlab: {
projectId: 123
}
NOTE: If you don't know how to find the projectId, see the section below :)
To get the project id for a specific Gitlab repository:
Visit the repository page on gitlab
Find the project id just below the title

Use this project id in your requests, to collect data from this project
When logged into Gitlab visit https://gitlab.com/-/profile/personal_access_tokens
Give the token any name, no expiration date and all scopes (excluding write access)

Click the Create Personal Access Token button
Copy the token into the lake plugin config file config/plugins.js