def check_branch(project, branch):
try:
project.branches.get(branch)
except GitlabGetError as e:
err(
'Cannot find branch [%(branch)s] for project [%(project)s]',
{'branch': branch, 'project': project.path_with_namespace},
)
except GitlabError as e:
err('Gitlab error: %s', e)
except GitlabConnectionError as e:
err('%s', e)
评论列表
文章目录