---
title: "获取项目仓库日志"
method: GET
path: "/api/v1/users/projects/{id}/tree/logs"
tags: ["【用户】项目管理"]
---

# 获取项目仓库日志

`GET /api/v1/users/projects/{id}/tree/logs`

获取项目仓库日志

## Path parameters

- `id` string, required

## Query parameters

- `ref` string
- `path` string
- `limit` integer
- `offset` integer
- `since_sha` string
- `until_sha` string

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainProjectLogs
    - `count` integer
    - `entries` DomainProjectCommitEntry[]
      - `commit` DomainProjectCommit
        - `author` DomainProjectCommitUser
          - `email` string
          - `name` string
          - `when` integer
        - `committer` DomainProjectCommitUser
          - `email` string
          - `name` string
          - `when` integer
        - `message` string
        - `parent_shas` string[]
        - `sha` string
        - `tree_sha` string
  - `message` string

## Other responses

- `401` — 未授权
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/versions/5a5929cb17f2/schema)
