cicd.core.provider
cicd.core.provider.client
- class cicd.core.provider.client.ProviderClient
Bases:
Client,ProviderMixinAn abstract client for CI provider APIs.
- get_project(identifier: int | str, **kwargs)
Get the details of a project.
- Parameters:
identifier – The identifier of the project.
- get_projects(**kwargs)
Get the list of (public) projects.
- get_pull_request(project_identifier: int | str, identifier: int | str, **kwargs)
Get the details of a pull/merge request.
- Parameters:
project_identifier – The identifier of the project.
identifier – The identifier of the pull/merge request.
- get_pull_requests(project_identifier: int | str, state: str | None = None, **kwargs)
Get the pull/merge requests of the given project.
- Parameters:
project_identifier – The identifier of the project.
state – The state (ex. open/closed/all) of the pull/merge requests.
cicd.core.provider.info
- class cicd.core.provider.info.ProviderInfo(name: str, module: str)
Bases:
objectA data class that holds info of the CI provider such as Github Actions, Gitlab, or CircleCI.
- T = ~T
- static resolve() ProviderInfo
Resolve the CI provider info.
Classes of the provider must be placed under
cicd.providers.<name>. They will be automatically loaded when resolving the provider info.
- static resolve_name() str
Resolve the name of the CI provider.