# VentureHarbour:Ops

Command center for gluing all of our stats together

## Basics

So the whole thing uses a Mongo store as a temp database to do deduplication and stuffs, once this is sycned up with the relevant service the database can then be export to a spreadsheet of your choosing for further data manipulation. The first time the app hits the need to use a Mongo DB you will be asked for a Mongo URI.

## Github

Currently you can sync from Github to your Mongo store, on first run it will ask for a personal access token, which you need to generate from the Github settings for your user. To get everything use the command

```bash
vhops github full-sync owner repo
```

This will pull in everything from that repository to the DB - PRs and comments.

You can also choose to sync just one PR

```bash
vhops github sync owner repo prNumber
```

## Linear

You can also pull in all of your Linear tickets, again you will be asked for a personal access token on first load - you will need to get this from the Linear settings page for your user:

```bash
vhops linear full-sync teamId
```

The teamId can be accessed through either the linear portal, or through the GraphQL api.