diff --git a/SharpBucket/V2/EndPoints/RepositoryResource.cs b/SharpBucket/V2/EndPoints/RepositoryResource.cs index f22ffc2..4fffcc2 100644 --- a/SharpBucket/V2/EndPoints/RepositoryResource.cs +++ b/SharpBucket/V2/EndPoints/RepositoryResource.cs @@ -679,6 +679,18 @@ public BuildInfo GetBuildStatusInfo(string revision, string key) return SharpBucketV2.Get(overrideUrl); } + /// + /// Returns the build status information for a specific commit. + /// + /// The SHA1 of the commit. + /// An enumerable collection of build status information. + public IEnumerable GetBuildStatusInfo(string revision) + { + var overrideUrl = BaseUrl + $"/commit/{revision}/statuses"; + + return SharpBucketV2.EnumeratePaginatedValues(overrideUrl); + } + /// /// Returns the specified build status for a commit. /// diff --git a/SharpBucket/V2/Pocos/UserRole.cs b/SharpBucket/V2/Pocos/UserRole.cs index 398f2cd..5f6ccd7 100644 --- a/SharpBucket/V2/Pocos/UserRole.cs +++ b/SharpBucket/V2/Pocos/UserRole.cs @@ -5,5 +5,6 @@ public class UserRole public User User { get; set; } public string Role { get; set; } public bool Approved { get; set; } + public string State { get; set; } } } \ No newline at end of file