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遍历所有项目
相关推荐
Cchaofan1 天前
Git/GitLab日常使用的命令指南来了!
git·gitlab
可乐加.糖1 天前
项目版本管理和Git分支管理方案
java·git·目标跟踪·gitlab·敏捷流程·源代码管理
GoodStudyAndDayDayUp2 天前
gitlab+portainer 实现Ruoyi Vue后端CI/CD
vue.js·ci/cd·gitlab
伊成2 天前
gitlab提交测试分支的命令和流程
gitlab
山师第一深情2 天前
ssh connect to remote gitlab without authority
服务器·ssh·gitlab
GoodStudyAndDayDayUp3 天前
gitlab+portainer 实现Ruoyi Vue前端CI/CD
前端·vue.js·gitlab
风屿.4 天前
部署安装gitlab-ce-17.9.7-ce.0.el8.x86_64.rpm
gitlab
亮1115 天前
GITLAB跑gradle项目 不借助maven-publish直接上传到nexus私人仓库
java·gitlab·gradle·maven
极小狐5 天前
极狐GitLab 通用软件包存储库功能介绍
java·数据库·c#·gitlab·maven
小马爱打代码5 天前
K8S - GitLab CI 自动化构建镜像入门
ci/cd·kubernetes·gitlab