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遍历所有项目
相关推荐
leblancAndSherry9 小时前
Gitlab + Jenkins 实现 CICD
linux·运维·docker·kubernetes·gitlab·jenkins
星释17 小时前
Yii2项目自动向GitLab上报Bug
前端·gitlab·bug·yii
星释3 天前
如何自动部署GitLab项目
gitlab
keson要进步3 天前
CICD实战(二)-----gitlab的安装与配置
linux·运维·gitlab
猫头虎4 天前
[特殊字符]解决 “IDEA 登录失败。不支持早于 14.0 的 GitLab 版本” 问题的几种方法
java·ide·网络协议·http·https·gitlab·intellij-idea
风早君4 天前
jenkins集成gitlab发布到远程服务器
服务器·gitlab·jenkins
大白要努力!6 天前
在 Android Studio 中使用 GitLab 添加图片到 README.md
android·gitlab·android studio
星释6 天前
如何编写GitLab-CI配置文件
ci/cd·gitlab
馨羽的玩具6 天前
gitlab rss订阅失败
gitlab
t198751287 天前
jenkins结合gitlab实现CI
ci/cd·gitlab·jenkins