1 Star 0 Fork 39

xwzQmxx / go-gitee

forked from openEuler / go-gitee 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MilestonesApi.md 8.58 KB
一键复制 编辑 原始数据 按行查看 历史
edisonxiang 提交于 2019-09-25 10:56 . add go-gitee sdk

\MilestonesApi

All URIs are relative to https://gitee.com/api

Method HTTP request Description
DeleteV5ReposOwnerRepoMilestonesNumber Delete /v5/repos/{owner}/{repo}/milestones/{number} 删除仓库单个里程碑
GetV5ReposOwnerRepoMilestones Get /v5/repos/{owner}/{repo}/milestones 获取仓库所有里程碑
GetV5ReposOwnerRepoMilestonesNumber Get /v5/repos/{owner}/{repo}/milestones/{number} 获取仓库单个里程碑
PatchV5ReposOwnerRepoMilestonesNumber Patch /v5/repos/{owner}/{repo}/milestones/{number} 更新仓库里程碑
PostV5ReposOwnerRepoMilestones Post /v5/repos/{owner}/{repo}/milestones 创建仓库里程碑

DeleteV5ReposOwnerRepoMilestonesNumber

DeleteV5ReposOwnerRepoMilestonesNumber(ctx, owner, repo, number, optional) 删除仓库单个里程碑

删除仓库单个里程碑

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string 仓库所属空间地址(企业、组织或个人的地址path)
repo string 仓库路径(path)
number int32 里程碑序号(id)
optional *DeleteV5ReposOwnerRepoMilestonesNumberOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoMilestonesNumberOpts struct

Name Type Description Notes

accessToken | optional.String| 用户授权码 |

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetV5ReposOwnerRepoMilestones

[]Milestone GetV5ReposOwnerRepoMilestones(ctx, owner, repo, optional) 获取仓库所有里程碑

获取仓库所有里程碑

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string 仓库所属空间地址(企业、组织或个人的地址path)
repo string 仓库路径(path)
optional *GetV5ReposOwnerRepoMilestonesOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoMilestonesOpts struct

Name Type Description Notes

accessToken | optional.String| 用户授权码 | state | optional.String| 里程碑状态: open, closed, all。默认: open | [default to open] sort | optional.String| 排序方式: due_on | [default to due_on] direction | optional.String| 升序(asc)或是降序(desc)。默认: asc | page | optional.Int32| 当前的页码 | [default to 1] perPage | optional.Int32| 每页的数量,最大为 100 | [default to 20]

Return type

[]Milestone

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetV5ReposOwnerRepoMilestonesNumber

Milestone GetV5ReposOwnerRepoMilestonesNumber(ctx, owner, repo, number, optional) 获取仓库单个里程碑

获取仓库单个里程碑

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string 仓库所属空间地址(企业、组织或个人的地址path)
repo string 仓库路径(path)
number int32 里程碑序号(id)
optional *GetV5ReposOwnerRepoMilestonesNumberOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoMilestonesNumberOpts struct

Name Type Description Notes

accessToken | optional.String| 用户授权码 |

Return type

Milestone

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchV5ReposOwnerRepoMilestonesNumber

Milestone PatchV5ReposOwnerRepoMilestonesNumber(ctx, owner, repo, number, title, dueOn, optional) 更新仓库里程碑

更新仓库里程碑

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string 仓库所属空间地址(企业、组织或个人的地址path)
repo string 仓库路径(path)
number int32 里程碑序号(id)
title string 里程碑标题
dueOn string 里程碑的截止日期
optional *PatchV5ReposOwnerRepoMilestonesNumberOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PatchV5ReposOwnerRepoMilestonesNumberOpts struct

Name Type Description Notes

accessToken | optional.String| 用户授权码 | state | optional.String| 里程碑状态: open, closed, all。默认: open | [default to open] description | optional.String| 里程碑具体描述 |

Return type

Milestone

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostV5ReposOwnerRepoMilestones

Milestone PostV5ReposOwnerRepoMilestones(ctx, owner, repo, title, dueOn, optional) 创建仓库里程碑

创建仓库里程碑

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
owner string 仓库所属空间地址(企业、组织或个人的地址path)
repo string 仓库路径(path)
title string 里程碑标题
dueOn string 里程碑的截止日期
optional *PostV5ReposOwnerRepoMilestonesOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a PostV5ReposOwnerRepoMilestonesOpts struct

Name Type Description Notes

accessToken | optional.String| 用户授权码 | state | optional.String| 里程碑状态: open, closed, all。默认: open | [default to open] description | optional.String| 里程碑具体描述 |

Return type

Milestone

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, multipart/form-data
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

Go
1
https://gitee.com/xwzqmxx/go-gitee.git
git@gitee.com:xwzqmxx/go-gitee.git
xwzqmxx
go-gitee
go-gitee
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891