Added support for getting all the available branches for a build type.#56
Added support for getting all the available branches for a build type.#56pauldotknopf wants to merge 2 commits intostack72:masterfrom pauldotknopf:master
Conversation
|
Hey @theonlylawislove, thats for the PR, can you show my a sample implementation for this and what you would expect to get back from the TeamCity API for it? I want to be able to make sure I understand what you are trying to achieve Thanks Paul |
|
I needed this to get a list of all the branches currently available for a build. I added an integration test to demonstrate that it works. I needed this in my app because I don't just display all recent builds, I show each branch, and then the builds in each branch. I know TeamCity supports as a branch name, but there could be a change a branch hasn't been built in a while. Also, this is the only way to find out what branch is the "Default" branch. |
|
Hi Paul, I have looked at said test, [Test]
This specific test said that it couldn’t get any branches back for that project. What would a successful call to the API return? Paul On Sunday, 10 November 2013 at 22:19, Paul Knopf wrote:
|
|
Currently, the API is returning: The actual JSON returned is: I just did the query to get these results. What are you seeing? |
|
Hey, I also added support for querying a single build. Previously, there was only support for getting a list of builds which only had a subset of the information that is available when querying a single build. |
|
Is there anything you want me to change to get this merged in? |
No description provided.