---
title: "🔒 Получение списка коммитов, привязанных к сущности (продукту, версии, фиче или задаче)."
method: GET
path: "/integration/git/commit-list"
tags: ["Integrations: Git"]
---

# 🔒 Получение списка коммитов, привязанных к сущности (продукту, версии, фиче или задаче).

`GET /integration/git/commit-list`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/integration/git/commit-list`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

Получение списка коммитов, привязанных к сущности (продукту, версии, фиче или задаче).

**Access:** `authorized` (10 ) · **Scope:** `read`

**Allows:** `task:read`, `feature:read`, `version:read`, `product:read` (все обязательны; проверка в команде по ресурсу из запроса)

### TypeScript (copy-paste)

**`GET /integration/git/commit-list`**

<details open><summary><b>Params</b></summary>

```typescript
export interface IntegrationGitCommitListParams {
  type: EntityType
  ID: string
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type IntegrationGitCommitListResponse = IServerResponse<Resp_integration_git_commit-list>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Query parameters

- `type` 'project' | 'product' | 'module' | 'component' | 'version' | 'feature' | 'task' | 'bug', required: `project` = "project", `product` = "product", `module` = "module", `component` = "component", `version` = "version", `feature` = "feature", `task` = "task", `bug` = "bug"
- `ID` string, uuid, required

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Response `200`

OK — `IServerResponse<Resp_integration_git_commit-list>`

- object
  - `code` integer, required
  - `data` RespIntegrationGitCommitList, required: ResponseData for integration/git/commit-list
    - `tasks` object, required
    - `repositories` GitRepositoryWithIntegrationTypeDTO[], required
    - `groups` CommitsGroup[], required
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest: Invalid entity type provided
- `401`: Unauthorized: Active user session required
- `403`: AccessNotAllowed: Privilege task:read, feature:read, version:read or product:read (by type) required
- `404`: NotFound: Target entity with specified ID does not exist
- `406`: TimeResync — расхождение rts с сервером

---

[API](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api.md) · [All operations](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/revisions/a143b51ba29a?raw)
