跳到主要内容

获取仓库的流水线列表

GET 

/api/v8/repos/:owner/:repo/actions/workflows

Request​

Path Parameters

    owner stringrequired

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

    repo stringrequired

    仓库路径(path)

Query Parameters

    access_token string

    用户授权码

    per_page integer

    每页的数量,最大为 100,默认 20

    page integer

    当前的页码:默认为 1

Responses​

Response Headers
    Schema
      total_countintegerrequired

      总数量

      workflows object[]required
    • Array [
    • workflow_idstringrequired

      流水线id

      file_pathstringrequired

      流水线配置文件

      namestringrequired

      流水线名称

      statestringrequired

      流水线状态

    • ]