/// <summary> /// Gets the commit information associated with a repository. By default, this call returns all the commits /// across all branches, bookmarks, and tags. The newest commit is first. /// </summary> /// <param name="accountName">The team or individual account owning the repo.</param> /// <param name="repoSlug">The repo identifier.</param> /// <param name="options">The options for the call to the API.</param> public BitBucketCommitsResponse GetCommits(string accountName, string repoSlug, BitBucketCommitsOptions options) { return BitBucketCommitsResponse.ParseResponse(Raw.GetCommits(accountName, repoSlug, options)); }
/// <summary> /// Gets the commit information associated with a repository. By default, this call returns all the commits /// across all branches, bookmarks, and tags. The newest commit is first. /// </summary> /// <param name="accountName">The team or individual account owning the repo.</param> /// <param name="repoSlug">The repo identifier.</param> /// <param name="options">The options for the call to the API.</param> public SocialHttpResponse GetCommits(string accountName, string repoSlug, BitBucketCommitsOptions options) { return Client.DoHttpGetRequest("https://bitbucket.org/api/2.0/repositories/" + accountName + "/" + repoSlug + "/commits", options); }