> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/collaboration/change-requests.md).

# 变更请求

变更请求是你主内容的一份副本。它基于分支的概念，对于在 GitHub 中使用拉取请求或在 GitLab 中使用合并请求的人来说都很熟悉。

在变更请求中，你可以编辑、更新和删除内容，请求他人审阅你的更改，然后将它们合并回你的主版本。

要浏览和管理整个站点中处于打开状态的变更请求，请参阅 [变更请求界面](/docs/documentation/zh/collaboration/change-requests/change-requests-screen.md).

<figure><img src="/files/5bd0a6853ff3b8caaa7736e0855d8ce0b5067f50" alt="A GitBook screenshot showing the change requests panel"><figcaption><p>通过变更请求编辑你的内容。</p></figcaption></figure>

### 在差异视图中审阅更改 <a href="#diff-mode" id="diff-mode"></a>

打开 **更改** 选项卡，以审阅变更请求中的编辑。你可以结合上下文审阅所有页面，或仅关注已更改的页面。

{% hint style="info" %}
默认情况下，更改会以“分屏视图”显示。左侧显示页面的“之前”版本，右侧显示“之后”状态。如果你更喜欢在单列布局中以内联方式查看更改，请点击目录面板右上角的差异模式按钮。
{% endhint %}

### 创建并合并变更请求

{% stepper %}
{% step %}

### 打开变更请求

要编辑内容，请打开一个变更请求。你可以通过以下几种方式打开：

* 点击 **编辑** 在某个部分右上角的。
* 请求 GitBook Agent 代你创建一个。
* 当 GitBook Agent 检测到文档缺口时，可能会自动创建一个。

如果你手动打开一个，GitBook 会创建该变更请求并在编辑器中将其打开。
{% endstep %}

{% step %}

### 进行更改

直接在编辑器中编辑内容，或与 GitBook Agent 协作。

在继续之前，请先审阅你的更改。你可以继续编辑，直到准备好请求审阅为止。
{% endstep %}

{% step %}

### 请求审阅

打开 **概览** 选项卡，然后标记一位或多位审阅者。

审阅者可以批准你的更改、留下评论，或要求进一步修改。如果你没有标记任何人，系统会通知该部分中所有具有审阅权限的人。如果该部分没有审阅者，则会改为通知编辑和管理员。

如果有人要求修改，请在合并之前更新变更请求。你也可以让 GitBook Agent 审阅该变更请求。
{% endstep %}

{% step %}

### 合并

一旦变更请求获得批准，请打开 **概览** 选项卡，然后点击 **合并**.

GitBook 会立即将更改应用到你的在线文档中。如果你的部分使用了合并规则，GitBook 会在合并前进行检查。

合并后无法撤销。要还原或调整内容，请打开一个新的变更请求。
{% endstep %}
{% endstepper %}

### 使用变更请求

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>变更请求界面</strong></td><td>查看并管理整个站点中的变更请求</td><td><a href="/pages/5741051520dde4fa614fc550a4e88c41bcd7fadb">/pages/5741051520dde4fa614fc550a4e88c41bcd7fadb</a></td></tr><tr><td><strong>某个部分中的变更请求</strong></td><td>在单个部分中创建并审阅变更请求</td><td><a href="/pages/06c22188ec9e4c3d0a9fc0a1981db6804af1db3e">/pages/06c22188ec9e4c3d0a9fc0a1981db6804af1db3e</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/collaboration/change-requests.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
