devops-10-gitlab

gitlab

多分开发模式git flow

csdngit多人开发模式参考
在这里插入图片描述

gitlab->jenkines->k8s
ci

https://gitlab.xxx.com/help/api/README.md
https://gitlab.xxx.com/help/api/projects.md
脱敏

merge
同意合并请求

PUT /projects/:id/merge_request/:merge_request_id/merge
https://gitlab.xxx.com/api/v3/projects/2304574/merge_requests/1/merge?private_token=xxxxxxx
{
“id”:2304574,
“merge_request_id”:10877394,
“merge_commit_message”:“同意”,
“should_remove_source_branch”:true,
“merged_when_build_succeeds”:true
}

assignees.merge_request_id 10877394

创建mr 合并请求

POST /projects/:id/merge_requests
https://gitlab.xxx.com/api/v3/projects/2304574/merge_requests?private_token=xxxxxxx
{
“id”:2304574,
“source_branch”:“origin/feature/chh_filter”,
“target_branch”:“master”,
“assignee_id”:80092,
“title”:“发布上线”,
“description”:“增加框架说明详情”
}

assignee_id 发送给谁合并

列出mr

/projects/:id/merge_requests
https://gitlab.xxx.com/api/v3/projects/2304574/merge_requests?private_token=xxxxxxx

需要取其中 assignees.merge_request_id

分支
创建分支

POST /projects/:id/repository/branches

https://gitlab.xxx.com/api/v3/projects/2304574/repository/branches?private_token=xxxxxxx
{
“id”:2304574,
“branch_name”:“origin/feature/chh_dash”,
“ref”:“master”
}

列出分支

/projects/:id/repository/branches
列出分支
https://gitlab.xxx.com/api/v3/projects/2304574/repository/branches?private_token=xxxxxxx

/projects/:id/repository/branches/:branch
https://gitlab.xxx.com/api/v3/projects/2304574/repository/branches/master?private_token=xxxxxxx

id

https://gitlab.xxx.com/api/v3/projects/2304574?private_token=xxxxxxx
events
https://gitlab.xxx.com/api/v3/projects/2304574/events?private_token=xxxxxxx

owner

https://gitlab.xxx.com/api/v3/projects/owned?private_token=xxxxxxx

获取用户详细信息
https://gitlab.xxx.com/api/v3/users/80092?private_token=xxxxxxx

登录

https://gitlab.xxx.com/api/v3/session
{
“login”:“user”,
“email”:“userx’x’x@gitlab.xxx.com”,
“password”:“xxxxxxx”
}
{
“avatar_url”: “https://xxxxxxx/git/uploads/user/avatar/80092/baidi.jpg”,
“bio”: null,
“can_create_group”: true,
“can_create_project”: true,
“color_scheme_id”: 1,
“created_at”: “2018-03-29T16:40:38.000+08:00”,
“current_sign_in_at”: “2022-11-26T09:19:52.000+08:00”,
“email”: “userxxx@xxx.com”,
“extern_uid”: “userxxx”,
“id”: 80092,
“identities”: [],
“is_admin”: false,
“linkedin”: “”,
“name”: “userxxx”,
“private_token”: “x’x’x’x’x’x’x”,
“projects_limit”: 50,
“skype”: “”,
“state”: “active”,
“theme_id”: 2,
“twitter”: “”,
“username”: “userxxx”,
“web_url”: “”,
“website_url”: “”
}
https://gitlab.xxx.com/api/v3/projects?private_token=xxxxxxx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值