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遍历所有项目
相关推荐
Thinbug6 小时前
群晖Nas - Docker(ContainerManager)上安装GitLab
docker·容器·gitlab
最美dee时光13 小时前
gitlab-runner 如何配置使用 Overwrite generated pod specifications
gitlab
今夕节度使13 小时前
通过 VS Code 连接 GitLab 并上传项目
git·elasticsearch·gitlab
leblancAndSherry1 天前
Gitlab + Jenkins 实现 CICD
linux·运维·docker·kubernetes·gitlab·jenkins
星释2 天前
Yii2项目自动向GitLab上报Bug
前端·gitlab·bug·yii
星释4 天前
如何自动部署GitLab项目
gitlab
keson要进步4 天前
CICD实战(二)-----gitlab的安装与配置
linux·运维·gitlab
猫头虎5 天前
[特殊字符]解决 “IDEA 登录失败。不支持早于 14.0 的 GitLab 版本” 问题的几种方法
java·ide·网络协议·http·https·gitlab·intellij-idea
风早君5 天前
jenkins集成gitlab发布到远程服务器
服务器·gitlab·jenkins
大白要努力!7 天前
在 Android Studio 中使用 GitLab 添加图片到 README.md
android·gitlab·android studio