lvermeulen / Bitbucket.Cloud.Net

C# client for Atlassian Bitbucket Cloud
MIT License
13 stars 19 forks source link

Query parameter in GetRepositoryPullRequestsAsync misnamed #30

Open ghost opened 1 year ago

ghost commented 1 year ago

First of all: Many thanks for this project! It was very helpful for me :heart:

I came across a small issue in line 37 of BitbucketCloudClient.cs: The query parameter should be named state instead of q to match the description of the API method:

public async Task<IEnumerable<PullRequest>> GetRepositoryPullRequestsAsync(string workspaceId, string repositorySlug, int? maxPages = null, string state = null)
{
    var queryParamValues = new Dictionary<string, object>
    {
        [nameof(state)] = state
    };
    ...