Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Add 'changes since change id', fix compilation by adding System.Web #81

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct call to changes endpoint with correct buildType id parameter.
Missing id: in the URL for buildType.
  • Loading branch information
derekgates committed Aug 13, 2014
commit 1c0aa2552f09965b0dbdb0a46fa5987c94365df0
4 changes: 2 additions & 2 deletions src/TeamCitySharp/ActionTypes/Changes.cs
Original file line number Diff line number Diff line change
@@ -31,14 +31,14 @@ public Change ByChangeId(string id)

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

return changeWrapper.Change;
}

public List<Change> ByBuildConfigIdSinceChangeId(string buildConfigId, string sinceChangeId)
{
var changeWrapper = _caller.GetFormat<ChangeWrapper>("/app/rest/changes?buildType={0}&sinceChange=id:{1}", buildConfigId, sinceChangeId);
var changeWrapper = _caller.GetFormat<ChangeWrapper>("/app/rest/changes?buildType=id:{0}&sinceChange=id:{1}", buildConfigId, sinceChangeId);

return changeWrapper.Change;
}