跳到主要内容

创建 Pull Request标签

POST 

/api/v5/repos/:owner/:repo/pulls/:number/labels

Request​

Path Parameters

    owner stringrequired

    仓库所属空间地址(组织或个人的地址path)

    repo stringrequired

    仓库路径(path)

    number integerrequired

    第几个PR,即本仓库PR的序数

    Example: 0

Query Parameters

    access_token stringrequired

    用户授权码

Body array

  • Array [
  • string

    标签名称

  • ]

Responses​

成功响应

Response Headers
    Schema
    • Array [
    • colorstring
      namestring
      idinteger
      titlestring
      typenull
      textColorstring
    • ]