> 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/xie-zuo/change-requests.md).

# 变更请求

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

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

要浏览和管理您整个站点中的打开的变更请求，请查看 [变更请求界面](/docs/documentation/zh/xie-zuo/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/xie-zuo/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.
