---
title: "Commit Info"
method: GET
path: "/projects/{project_id}/repository/commit_info"
tags: ["Repositories"]
---

# Commit Info

`GET /projects/{project_id}/repository/commit_info`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{project_id}/repository/commit_info`
- Auth: HTTP basic

Returns detailed information about a specific commit including author, message, tags, and avatar URL. Queues a repository update if the commit is not found.

## Path parameters

- `project_id` string, required

## Query parameters

- `commit` string, required

## Response `200`

Success

- RefAuthorEmailObject
  - `ref` string, required
  - `author` string, required
  - `email` string, required
  - `timestamp` string
  - `message` string
  - `short_message` string
  - `tags` string[]
  - `avatar_url` string

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
