I’m a big user of gh and so I like working with a tool like this for bitbucket.
Listing pipelines from the terminal is something I will use a lot. However the list doesn’t appear to be in date order? Is there a way to sort it?
Could you add the pipeline run number (eg. #10) and date time to the list details? I’m seeing just these values so it’s not easy to figure out which run it relates to:
Also is this the correct usage for the other pipeline commands bkt pipeline view "{57d08fb6-96c1-4d17-8cb6-d5aff1de3095}"? I tried with and without the brackets but I get the following in both cases:
Sorting & missing fields - You’re right, the list currently doesn’t sort by date and is missing the build number (#10) and timestamp. I’ll add these in the next release.
The view command error - The 400 “unexpected.response.body” error might be happening because the command expects the UUID (the long {abc123…} value), not the build number (#10).
Could you try:
a. Run bkt pipeline list to get the UUID
b. Use that UUID: bkt pipeline view abc123… (no quotes, braces optional)
c. If still failing, try: bkt pipeline view --workspace --repo
Let me know if you have other thoughts regarding this.
Workaround for timestamps: bkt status pipeline already shows Created/Completed times if you need that now.
I’ll open issues to track the sorting/display improvements - thanks for reporting! Thanks again, – aviv
About the btk pipeline view command. Yes I am using the UUID and have tried with and without ‘{’ ‘}’.
I added the --workspace and --repo commands but it’s still failing. I confirmed those args are passing through by adding bad values and seeing it return “resource not found”. When I pass the correct repo and workspace it goes back to the unexpected.response.body.
Any ideas? Maybe I can check it out locally and add a bit of logging to get the full API response?