GitLabPHP / Client

GitLab API v4 client for PHP
MIT License
932 stars 451 forks source link

[BUG] Missing author parameter on repositories()->commits() #776

Closed mjadsmurai closed 9 months ago

mjadsmurai commented 11 months ago

As documentation states, there's an author parameter: https://docs.gitlab.com/ee/api/commits.html

But this SDK is missing it: https://github.com/GitLabPHP/Client/blob/11.11/src/Api/Repositories.php#L203

When i try to use it, it throws an exception saying that author doesn't exist.

$client->repositories()->commits($projectId, [
    "author" => "demo@demo.com"
]);

DIrect curl requests against /repositories/commits with author parameter do work, so it's just missing in this sdk definition :o

GrahamCampbell commented 9 months ago

Fixed in 11.12.0