stack72 / TeamCitySharp

No Longer Maintained - please use https://github.com/mavezeau/TeamCitySharp
Other
200 stars 165 forks source link

Feature suggestion - ChangeByBuildConfigId #18

Closed ghost closed 12 years ago

ghost commented 12 years ago

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.

stack72 commented 12 years ago

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