Visit config-ui: http://localhost:4000.
Name your connection.
This should be a valid REST API endpoint, eg. https://api.github.com/. The url should end with /.
GitHub personal access tokens are required to add a connection.
Apache DevLake to collect data from private repositories:repo:statusrepo_deploymentread:userread:orgIf you are behind a corporate firewall or VPN you may need to utilize a proxy server. Enter a valid proxy server address on your network, e.g. http://your-proxy-server.com:1080
Click Test Connection, if the connection is successful, click Save Connection to add the connection.
Enter the GitHub repos to collect. If you want to collect more than 1 repo, please separate repos with comma. For example, “apache/incubator-devlake,apache/incubator-devlake-website”.
Usually, you don‘t have to modify this part. However, if you don’t want to collect certain GitHub entities, you can unselect some entities to accelerate the collection speed.
Without adding transformation rules, you can still view the “GitHub Metrics” dashboard. However, if you want to view “Weekly Bug Retro”, “Weekly Community Retro” or other pre-built dashboards, the following transformation rules, especially “Type/Bug”, should be added.
Each GitHub repo has at most ONE set of transformation rules.
Severity: Parse the value of severity from issue labels.
Component: Same as “Severity”.
Priority: Same as “Severity”.
Type/Requirement: The type of issues with labels that match given regular expression will be set to “REQUIREMENT”. Unlike “PR.type”, submatch does nothing, because for issue management analysis, users tend to focus on 3 kinds of types (Requirement/Bug/Incident), however, the concrete naming varies from repo to repo, time to time, so we decided to standardize them to help analysts metrics.
Type/Bug: Same as “Type/Requirement”, with type setting to “BUG”.
Type/Incident: Same as “Type/Requirement”, with type setting to “INCIDENT”.
Type: The type of pull requests will be parsed from PR labels by given regular expression. For example:
Component: The component of pull requests will be parsed from PR labels by given regular expression.
Tags Limit: It‘ll compare the last N pairs of tags to get the "commit diff’, “issue diff” between tags. N defaults to 10.
Tags Pattern: Only tags that meet given regular expression will be counted.
Tags Order: Only “reverse semver” order is supported for now.
Please click Save to save the transformation rules for the repo. In the data scope list, click Next Step to continue configuring.
You can choose how often you would like to sync your data in this step by selecting a sync frequency option or enter a cron code to specify your prefered schedule.