前提

python-gitlab 1.4
gitlab使用v3接口

示例代码

import gitlab

host = 'http://xxxx.com'
project_id = "xxxx"
gl = gitlab.Gitlab(host, private_token="xxx", api_version='3')
p = gl.projects.get(project_id, lazy=True)
print(p.branches.list())

参考

https://github.com/python-gitlab/python-gitlab/issues/710

相关文章:

  • 2022-01-02
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-12-15
  • 2021-11-29
  • 2021-11-11
猜你喜欢
  • 2022-12-23
  • 2021-07-12
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案