GitHub:术语:创建拉取请求与打开拉取请求

Pav*_*kin 4 terminology github pull-request

创建拉取请求打开拉取请求之间有区别吗?

创建拉取请求的一些短语示例:

  1. 创建拉取请求以提出存储库更改并进行协作。
  2. 您可以在创建拉取请求时指定要将更改合并到哪个分支。
  3. 创建草稿拉取请求,请使用下拉列表并选择创建草稿拉取请求

打开拉取请求的一些短语示例:

  1. 要在公共存储库中打开拉取请求,您必须具有对头或源分支的写访问权限。
  2. 拉取请求只能在两个不同的分支之间打开。
  3. 打开拉取请求后,您可以与协作者讨论和审查潜在的更改。

PS 在我看来,创建拉取请求后,它变成:

  1. 创建。
  2. 它的状态自动变为open

逻辑上的意思是:

  1. 首先必须创建拉取请求。

  2. 然后,拉取请求可以根据需要多次打开(其状态为open)或关闭(其状态为)。closed

结果是,从技术上讲,打开拉取请求并不意味着创建拉取请求

Mad*_*hat 5

创建拉取请求打开拉取请求含义相同,只是使用不同的动词来指示 PR(拉取请求)的创建。您唯一的困惑是由于您open是 PR 的州之一。

当你说

逻辑上的意思是:

首先必须创建拉取请求。

然后,拉取请求可以根据需要多次打开(其状态为打开)或关闭(其状态为关闭)。

it doesn't necessarily mean that step 1 is creation and step 2 is opening of a PR, but actually when a PR is created or opened it has open as its state by default. The state is GitHub's internal construct to manage the state of a PR, ie if it's open or closed (closed can mean the PR is either just closed or merged).

  • An open PR can be closed or merged, thereby changing its state from open to closed

  • A PR which is closed (and not merged) can be reopened thereby changing its state from closed to open.

So technically speaking, open a pull request and create a pull request mean the same. Opening a PR which is closed and not yet merged is meant by Reopening a pull request.