gpt4 book ai didi

api - GitHub API - 如何将问题移至项目?

转载 作者:行者123 更新时间:2023-12-04 00:25:49 25 4
gpt4 key购买 nike

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

最佳答案

你可以:

  • create a project card :POST /projects/columns/:column_id/cards
  • move a project card :POST /projects/columns/cards/:card_id/moves

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

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


  • 第二个允许您移动卡片(及其相关问题)

  • 这两个电话应该足够了。

    OP Ken Liuin the comments如果有任何方法可以将问题添加到项目而不将其添加到项目列。
    seth建议:

    You can add an issue to the repo using code (GitHub API) as per creating an issue

    关于api - GitHub API - 如何将问题移至项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57024087/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com