No description or website provided.
Python
Switch branches/tags
Nothing to show
Latest commit 9d9408c Apr 7, 2017 @mdelaurentis mdelaurentis Fix missing var
Permalink
Failed to load latest commit information.
tap_gitlab Fix missing var Apr 7, 2017
.gitignore update Feb 15, 2017
LICENSE init Feb 10, 2017
MANIFEST.in update Feb 15, 2017
README.md Added details about resources, config and state Feb 21, 2017
circle.yml Better error message if no last_activity_at Mar 21, 2017
setup.cfg update Feb 15, 2017
setup.py

README.md

tap-gitlab

This is a Singer tap that produces JSON-formatted data following the Singer spec.

This tap:

Quick start

  1. Install

    > pip install tap-gitlab
  2. Get your GitLab access token

    • Login to your GitLab account
    • Navigate to your profile page
    • Create an access token
  3. Create the config file

    Create a JSON file called config.json containing:

    • Access token you just created
    • API URL for your GitLab account. If you are using the public gitlab.com this will be https://gitlab.com/api/v3
    • Projects to track (space separated)
    {"api_url": "https://gitlab.com/api/v3",
     "private_token": "your-access-token",
     "projects": "myorg/repo-a myorg/repo-b"}
  4. [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",
    "milestones": "2017-01-17T00:00:00Z",
    "projects": "2017-01-17T00:00:00Z",
    "users": "2017-01-17T00:00:00Z"}
  5. Run the application

    tap-gitlab can be run with:

    tap-gitlab --config config.json [--state state.json]

Copyright © 2017 Stitch