> 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.
