Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mjadsmurai opened this issue Oct 3, 2023 · 1 comment · Fixed by #777
Closed

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

mjadsmurai opened this issue Oct 3, 2023 · 1 comment · Fixed by #777

Comments

@mjadsmurai
Copy link

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
Copy link
Member

Fixed in 11.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants