Skip to content

Commit

Permalink
Further cleanup in the DeploymentStatusClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss authored and shiftkey committed Feb 25, 2020
1 parent 20fafc8 commit da4711c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Octokit/Clients/DeploymentStatusClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Task<IReadOnlyList<DeploymentStatus>> GetAll(string owner, string name, i

return ApiConnection.GetAll<DeploymentStatus>(ApiUrls.DeploymentStatuses(owner, name, deploymentId),
null,
AcceptHeaders.DeploymentApiPreview,
AcceptHeaders.Concat(AcceptHeaders.DeploymentApiPreview, AcceptHeaders.DeploymentStatusesPreview),
options);
}

Expand All @@ -86,7 +86,10 @@ public Task<IReadOnlyList<DeploymentStatus>> GetAll(long repositoryId, int deplo
{
Ensure.ArgumentNotNull(options, nameof(options));

return ApiConnection.GetAll<DeploymentStatus>(ApiUrls.DeploymentStatuses(repositoryId, deploymentId), options);
return ApiConnection.GetAll<DeploymentStatus>(ApiUrls.DeploymentStatuses(repositoryId, deploymentId),
null,
AcceptHeaders.Concat(AcceptHeaders.DeploymentApiPreview, AcceptHeaders.DeploymentStatusesPreview),
options);
}

/// <summary>
Expand Down

0 comments on commit da4711c

Please sign in to comment.