Greptile

App · Code Repositories · 2 actions

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

Get repository status

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

Inputs

RepositoryrepositorytextRequired
The repository in 'owner/name' form, e.g. 'greptileai/greptile'.
Remoteremotetext
The Git hosting platform the repository lives on.One of: github, gitlab. Default: github.
Branchbranchtext
The branch to index (e.g. 'main').Default: main.

Outputs

branchtext
filesProcessednumber
numFilesnumber
privatetrue/false
remotetext
repositorytext
shatext
Indexed commit SHA (present once indexed).
statustext
Indexing status, e.g. 'submitted', 'cloning', 'processing', or 'completed'.
Example output
{
  "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

RepositoryrepositorytextRequired
The repository in 'owner/name' form, e.g. 'greptileai/greptile'.
Remoteremotetext
The Git hosting platform the repository lives on.One of: github, gitlab. Default: github.
Branchbranchtext
The branch to index (e.g. 'main').Default: main.
Reloadreloadtrue/false
Force a re-index of an already-indexed repository (use after new commits land). Defaults to false.Default: false.
Notifynotifytrue/false
Email you when indexing finishes. Defaults to false.Default: false.

Outputs

responsetext
Greptile's acknowledgment of the indexing job.
Example output
{
  "response": "started indexing repository"
}

On this page