跳到主要内容

Create a Tag for a Repository

POST 

/api/v5/repos/:owner/:repo/tags

Request​

Path Parameters

    owner stringrequired

    Repository space address (organization or individual's address path)

    repo stringrequired

    Repository path (path)

Query Parameters

    access_token stringrequired

    User authorization code

Body

    refsstringrequired

    Start point name, default is main

    tag_namestringrequired

    The name of the newly created label

    tag_messagestring

    Tag Description, defaults to empty

Responses​

Successful Response

Response Headers
    Schema
      namestring
      messagestring
      commit object
      shastring
      datestring
      taggernull