GitHub API - 如何将问题移至项目? [英] GitHub API - how to move an issue to a project?

查看:18
本文介绍了GitHub API - 如何将问题移至项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有多种方法可以通过 GitHub 用户界面将 Github 问题移动到项目板,但似乎没有任何方法可以通过 API(v3 或 v4)执行此操作.这是缺少的功能吗?

There are several ways to move a Github issue to a Project board through the GitHub user interface, but there doesn't seem to be any way to do this via the API (either v3 or v4). Is this missing functionality?

推荐答案

您可以:

即:

  • 第一个允许您将问题与项目卡相关联,

content_id:您要与此卡关联的问题或拉取请求 ID.您可以使用 列出存储库的问题列出拉取请求端点以找到此 ID.
注意:根据您使用的是问题 ID 还是拉取请求 ID,您需要将 IssuePullRequest 指定为 content_type.>

content_id: The issue or pull request id you want to associate with this card. You can use the List issues for a repository and List pull requests endpoints to find this id.
Note: Depending on whether you use the issue id or pull request id, you will need to specify Issue or PullRequest as the content_type.

  • 第二个允许您移动卡片(及其相关问题)
  • 这两个电话应该足够了.

    Those two calls ought to be enough.

    OP Ken Liu在评论中 如果有任何方法可以将问题添加到项目中而不将其添加到项目中项目专栏.

    The OP Ken Liu asked in the comments if there is any way to add an issue to a project without adding it to a project column.

    seth 建议:

    您可以按照 创建问题

    这篇关于GitHub API - 如何将问题移至项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆