在 Github 的项目板中放置拉取请求的目的是什么?

What is purpose of placing pull request inside project board on Github?

我最近发现您可以在 Github 存储库上创建 里程碑项目板

使用项目板,您可以提出问题和拉取请求,并在板(看板)中移动它们。

但是在 boards 中有 pull request 的目的是什么?拉取请求不是与问题相关联的吗?为什么我要在板内放置拉取请求?


更新:

正如用户@BertrandMartel 所指出的(阅读下面的答案),这完全取决于您如何使用问题和拉取请求。由于 Github 是开源开发的大本营,软件用户可以创建问题来报告某些内容,但开发人员可以创建拉取请求来完成他们的工作。开发人员不必报告问题,他们只创建功能。同样适用于最终用户;他们可能想指出是否缺少某些东西或无法正常工作。他们不应参与项目(创建拉取请求)。

当您将拉取请求或问题添加到项目板时,这意味着您创建了对问题或拉取请求的引用。没有对 Pull request 做任何修改,它只是说这张卡片链接回那个 pull request

此外,拉取请求与问题无关。事实上,拉取请求 一种特殊类型的问题(请注意,它有一个 number 字段,该字段会像创建问题时的问题编号一样递增)。拉取请求 may be linked to other issues

But what is the purpose of having pull request inside boards

您可以为其分配注释并将它们与可以在不同列之间移动的看板样式卡片相关联。每一列在您的团队的项目管理方面具有不同的含义

模型如下:

  • 项目
    • 项目栏
      • 项目卡
        • ProjectCardItem(可能指向问题或拉取请求)

这是来自 graphql voyager 的图形表示:

来自 About project board

Project boards are made up of issues, pull requests, and notes that are categorized as cards in columns of your choosing. You can drag and drop or use keyboard shortcuts to reorder cards within a column, move cards from column to column, and change the order of columns.

Project board cards contain relevant metadata for issues and pull requests, like labels, assignees, the status, and who opened it. You can view and make lightweight edits to issues and pull requests within your project board by clicking on the issue or pull request's title.