Example command changes (#1158)
Co-authored-by: Roshan-sy <roshan-sy@github.com>
This commit is contained in:
Родитель
726d847f66
Коммит
4748f71104
|
@ -36,7 +36,8 @@ def pipeline_run_list(pipeline_ids=None, branch=None, organization=None, project
|
||||||
query_order=None, result=None, status=None, reason=None, tags=None, requested_for=None):
|
query_order=None, result=None, status=None, reason=None, tags=None, requested_for=None):
|
||||||
""" List the pipeline runs in a project.
|
""" List the pipeline runs in a project.
|
||||||
:param pipeline_ids: IDs (space separated) of definitions to list builds for.
|
:param pipeline_ids: IDs (space separated) of definitions to list builds for.
|
||||||
:type pipeline_ids: int
|
For multiple pipeline ids: --pipeline-ids 1 2
|
||||||
|
:type pipeline_ids: list of int
|
||||||
:param branch: Filter by builds for this branch.
|
:param branch: Filter by builds for this branch.
|
||||||
:type branch: str
|
:type branch: str
|
||||||
:param top: Maximum number of builds to list.
|
:param top: Maximum number of builds to list.
|
||||||
|
@ -100,9 +101,11 @@ def pipeline_run_add_tag(run_id, tags, organization=None, project=None, detect=N
|
||||||
client = get_build_client(organization)
|
client = get_build_client(organization)
|
||||||
tags = list(map(str, tags.split(',')))
|
tags = list(map(str, tags.split(',')))
|
||||||
if len(tags) == 1:
|
if len(tags) == 1:
|
||||||
tags = client.add_build_tag(project=project, build_id=run_id, tag=tags[0])
|
tags = client.add_build_tag(
|
||||||
|
project=project, build_id=run_id, tag=tags[0])
|
||||||
else:
|
else:
|
||||||
tags = client.add_build_tags(tags=tags, project=project, build_id=run_id)
|
tags = client.add_build_tags(
|
||||||
|
tags=tags, project=project, build_id=run_id)
|
||||||
return tags
|
return tags
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче