prometa.gitlab package
Submodules
prometa.gitlab.ci module
Update the CI file.
- class prometa.gitlab.ci.GitlabCI(project, path='.gitlab-ci.yml')[source]
Bases:
object
Wrapper around the gitlab-ci file.
- __init__(project, path='.gitlab-ci.yml')[source]
- Parameters:
project – A Project instance.
path – The path to the gitlab-ci file, relative to the repository root directory.
- add_tags()[source]
Add runner tags. This will deduplicate tags and also ensure that jobs using the same tags reference each other in the YAML output.
prometa.gitlab.repo module
Git functions.
- class prometa.gitlab.repo.GitlabRepo(path, remote='origin')[source]
Bases:
object
Basic functionality for retrieving Git information.
- __init__(path, remote='origin')[source]
- Parameters:
path – A path to the Git repository or any non-submodule path within it.
remote – The remote repository name to use for generating URLs.
- get_gitlab_project(glab)[source]
Get the python-gitlab Project instance from a python-gitlab GitLab instance.
- get_section_url(section)[source]
The URL to one of the various GitLab sections, e.g. “blob/main” or “packages”.
Module contents
Package stub.