# Greptile

> Index your Git repositories with Greptile and track indexing progress so your codebase is ready for Greptile's AI code search.

App · Code Repositories · 2 actions. Web page: https://docs.lodol.com/docs/integrations/greptile

## Actions

### Get repository status

Check a repository's indexing status, file-processing progress, and indexed commit SHA. A completed status means indexing is done.

**Inputs**

- Repository (`repository`, text, required): The repository in 'owner/name' form, e.g. 'greptileai/greptile'.
- Remote (`remote`, text): The Git hosting platform the repository lives on. One of: `github`, `gitlab`. Default: `github`.
- Branch (`branch`, text): The branch to index (e.g. 'main'). Default: `main`.

**Outputs**

- `branch` (text)
- `filesProcessed` (number)
- `numFiles` (number)
- `private` (true/false)
- `remote` (text)
- `repository` (text)
- `sha` (text): Indexed commit SHA (present once indexed).
- `status` (text): Indexing status, e.g. 'submitted', 'cloning', 'processing', or 'completed'.

**Example output**

```json
{
  "branch": "main",
  "filesProcessed": 420,
  "numFiles": 420,
  "private": false,
  "remote": "github",
  "repository": "greptileai/greptile",
  "sha": "89b286a699b2d023b7a1ebc468abf230d84ad547",
  "status": "completed"
}
```

### Index repository

Submit a Git repository to Greptile for indexing: the one-time (per branch) step that prepares a codebase for Greptile.

**Inputs**

- Repository (`repository`, text, required): The repository in 'owner/name' form, e.g. 'greptileai/greptile'.
- Remote (`remote`, text): The Git hosting platform the repository lives on. One of: `github`, `gitlab`. Default: `github`.
- Branch (`branch`, text): The branch to index (e.g. 'main'). Default: `main`.
- Reload (`reload`, true/false): Force a re-index of an already-indexed repository (use after new commits land). Defaults to false. Default: `false`.
- Notify (`notify`, true/false): Email you when indexing finishes. Defaults to false. Default: `false`.

**Outputs**

- `response` (text): Greptile's acknowledgment of the indexing job.

**Example output**

```json
{
  "response": "started indexing repository"
}
```
