This is a Singer tap that produces JSON-formatted data following the Singer spec.
This tap:
Install
> pip install tap-gitlab
Get your GitLab access token
Create the config file
Create a JSON file called config.json
containing:
https://gitlab.com/api/v3
Notes:
{"api_url": "https://gitlab.com/api/v3",
"private_token": "your-access-token",
"groups": "myorg mygroup",
"projects": "myorg/repo-a myorg/repo-b",
"start_date": "2018-01-01T00:00:00Z"}
[Optional] Create the initial state file
You can provide JSON file that contains a date for the API endpoints to force the application to only fetch data newer than those dates. If you omit the file it will fetch all GitLab data
{"branches": "2017-01-17T00:00:00Z",
"commits": "2017-01-17T00:00:00Z",
"issues": "2017-01-17T00:00:00Z",
"projects": "2017-01-17T00:00:00Z",
"project_milestones": "2017-01-17T00:00:00Z",
"users": "2017-01-17T00:00:00Z",
"group_milestones": "2017-01-17T00:00:00Z"}
Note:
Run the application
tap-gitlab
can be run with:
tap-gitlab --config config.json [--state state.json]
Copyright © 2018 Stitch