gitlab api获取用户星标项目

获取所有项目

复制代码
gitlab_url: gitlab的地址
token: 管理员账号的access_token
https://gitlab_url/api/v4/projects/?private_token=token&page=1&per_page=20

注:该链接只获取一页的数据,可通过循环累加page遍历所有项目

获取某个用户的星标项目

参考连接:https://docs.gitlab.cn/jh/api/projects.html#列出用户加星标的项目

复制代码
gitlab_url: gitlab的地址
ueser_id: 用户的id
token: 该用户的access_token
https://gitlab_url/api/v4/users/user_id/starred_projects?private_token=token&page=1&per_page=20
注:该链接只获取一页的数据,可通过循环累加page遍历所有项目

获取项目的所有分支

复制代码
gitlab_url: gitlab的地址
token: 用户的access_token
https://gitlab_url/api/v4/projects/project_id/repository/branches?private_token=token&page=1&per_page=20

注:该链接只获取一页的数据,可通过循环累加page遍历所有项目
相关推荐
嘻哈baby16 小时前
自建GitLab与CI/CD实战:团队协作完整方案
ci/cd·gitlab
秦时明月天明16 小时前
GitLab SSH Key 过期:git pull failed : remote your ssh key has expired
git·ssh·gitlab
极限实验室1 天前
程序员爆哭!我们让 COCO AI 接管 GitLab 审查后,团队直接起飞:连 CTO 都说“这玩意儿比人靠谱多了
人工智能·gitlab
HIT_Weston2 天前
61、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(五)
前端·ubuntu·gitlab
HIT_Weston3 天前
60、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(四)
前端·ubuntu·gitlab
周杰伦_Jay3 天前
【GOFrame】模块化框架与生产级实践
开发语言·gitlab·github
丫丫学AI4 天前
gitlab-runner注册执行器
gitlab
yuguo.im4 天前
5 分钟快速入门 Gitlab CI/CD
ci/cd·gitlab·github
aoxiang_ywj4 天前
GitLab 子模块(子仓)更新到主仓的完整流程
gitlab
HIT_Weston5 天前
57、【Ubuntu】【Gitlab】拉出内网 Web 服务:Gitlab 配置审视(一)
前端·ubuntu·gitlab