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遍历所有项目
相关推荐
危笑ioi10 小时前
docker部署jenkins/gitlab/nexus3/nginx配置端口转发与ssl
nginx·docker·gitlab·jenkins·ssl
木易 士心2 天前
GitLab 安装指南
git·gitlab
Linux运维技术栈2 天前
GitLab社区版备份优化:3M包为何是独立完整备份?
运维·git·gitlab
z.q.xiao3 天前
【镜像模式】WSL如何访问windows内网服务
linux·网络·windows·gitlab·wsl·dns
github.com/starRTC4 天前
Claude Code中英文系列教程17:将Claude Code集成在GitLab工作流里面
git·gitlab·github
阿凡达蘑菇灯5 天前
git安装--gitlab操作
git·gitlab
凉云生烟5 天前
cpolar助力Grafana告别局域网束缚!让数据监控触手可及
服务器·网络·信息可视化·gitlab·内网穿透
shimly1234565 天前
为公司服务器配置 gitlab CI/CD
gitlab
小舞O_o5 天前
gitlab文件上传
linux·服务器·git·python·目标检测·机器学习·gitlab
墨笔之风7 天前
Linux (Docker环境)GitLab本地部署指南
linux·docker·gitlab