Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Latest project pipeline#2696

jeremad started this conversation inIdeas
Oct 18, 2023· 1 comments· 4 replies
Discussion options

Hello,
Not sure if this is the right place, but is there any plan to support thelatest API for pipelines ?
https://docs.gitlab.com/ee/api/pipelines.html#get-the-latest-pipeline

Cheers

You must be logged in to vote

Replies: 1 comment 4 replies

Comment options

@jeremad this should already be possible with something like this:

pipeline = project.pipelines.get("latest")
You must be logged in to vote
4 replies
@jeremad
Comment options

And would it work withpipeline = project.pipelines.get("latest?ref=my_branch") ?

@nejch
Comment options

The proper way to do this in python would be:

pipeline=project.pipelines.get("latest",ref="my_branch")

This should work, yes!

@jeremad
Comment options

Amazed that this actually works. That's why I wanted to try a more a hacky way. Thanks for your answsers. A small mention in the doc would be amazing though. Cheers.

@nejch
Comment options

@jeremad that's great, if you feel like it you can open a PR inhttps://github.com/python-gitlab/python-gitlab/blob/main/docs/gl_objects/pipelines_and_jobs.rst!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
2 participants
@jeremad@nejch

[8]ページ先頭

©2009-2025 Movatter.jp