microsoft / microsoft/azure-devops-go-api

RunPipeline is calling 5.1 preview API?

Open
#100 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
223
Forks
92
PR merge metrics
No merged PRs in 30d

Description

hi,
Thank you for writing this API. I'm trying to write a terraform provider to call this API to run my pipeline. I have written my version 1 code (new Go learner) and then I realize your RunPipeline function is calling Azure devops API 5.1 preview ? while 6.0 is available?
Here is your code to show you are pointing to 5.1-preview.
resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1-preview.1", routeValues, queryParams, bytes.NewReader(body), "application/json", "application/json", nil)

I still haven't get my code working, but I'm not sure whether I should continue to develop my code which bases on 5.1 preview API calling.

I'm currently stuck at Pipeline calling and not able to find RefName.
It basically located pipeline base on PipelineID but not able to take RefName as parameter and always refer to basic master branch instead of other branches.
I have tried both "refs/heads/xxxbranchName" and "xxxbranchName", not effect.

since it's using 5.1 preview API, I can't find document from Microsoft to details explain what API look like.

Can you upgrade the RunPipeline to API 6.0 at least?

Many thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the RunPipeline entry point and inspect its request construction, especially the 5.1-preview version and RefName handling. Compare those parameters with the Azure DevOps 6.0 API documentation, then verify that the requested version and branch reference are passed correctly before considering the issue done.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.