stack72 / TeamCitySharp

No Longer Maintained - please use https://github.com/mavezeau/TeamCitySharp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature suggestion - ChangeByBuildConfigId

opened this issue · comments

Hi

I would like to suggest that a LastChangeByBuildConfigId method is added.
Currently I'm using my own implementation as so:

    public Change LastChangeByBuildConfigId(string buildConfigId)
    {
        var changeWrapper = _caller.GetFormat<ChangeWrapper>("/app/rest/changes?buildType={0}", buildConfigId);

        return changeWrapper.Change.FirstOrDefault();
    }

This enables me to find latest change to a build config instead of a build.

This has been added - I will create a Nuget package of these changes this week - for now try the source code as a test.