microsoft / microsoft/azure-devops-go-api
git commit changes typing
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 223
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to update a few files in ado and following this example https://docs.microsoft.com/en-us/rest/api/azure/devops/git/pushes/create?view=azure-devops-rest-5.1#update-a-file
I'm curious as to why the changes field isn't fully typed and is set as []interface{} instead https://github.com/microsoft/azure-devops-go-api/blob/dev/azuredevops/git/models.go#L574 despite the change type existing https://github.com/microsoft/azure-devops-go-api/blob/dev/azuredevops/git/models.go#L104?
Is this a problem with the generation or am I missing something here?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Changes field in azuredevops/git/models.go around the referenced declaration, then compare it with the GitChange type and the Azure DevOps REST pushes example. Trace the model-generation source if available to determine why the field is []interface{}; done means documenting the cause and establishing the appropriate typed representation or generator change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100