---
title: "Get Git Summary"
method: GET
path: "/snapshots/{snapshot_id}/git-summary"
tags: ["git"]
---

# Get Git Summary

`GET /snapshots/{snapshot_id}/git-summary`

Aggregate git health signals for the snapshot: hotspot/stable file
counts, average churn percentile, and the top contributors by primary
ownership. Computed from the per-file `git_metadata.json` artifact, mirroring
the OSS `/git-summary` route. Empty on snapshots without git metadata.

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `top_owners_limit` integer

## Response `200`

Successful Response

- GitSummaryResponse — Aggregate git health signals for a snapshot, mirroring the OSS `/git-summary` route. Computed from the per-file `git_metadata.json` artifact.
  - `total_files` integer
  - `hotspot_count` integer
  - `stable_count` integer
  - `average_churn_percentile` number
  - `top_owners` GitOwnerSummary[]
    - `name` string, required
    - `file_count` integer, required
    - `pct` number, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/repowise/repowise-hosted-api/revisions/1e57283a9737/schema)
