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

org.gitlab4j.api.CommitsApi#getCommits(java.lang.Object) response object Author is always null #1228

Open
bububear opened this issue Jan 21, 2025 · 2 comments

Comments

@bububear
Copy link

bububear commented Jan 21, 2025

When I call this interface /api/v4/projects/132/repository/commits?private_token=<personal_access_token> , I find that the Author is always null in the return parameter

Gitlab version : GitLab Community Edition [14.2.6]

@jmini
Copy link
Collaborator

jmini commented Jan 22, 2025

According to the specification:
https://docs.gitlab.com/ee/api/commits.html#list-repository-commits

The commit JSON contains:

    "author_name": "randx",
    "author_email": "user@example.com",

And not a single author attribute.

This should be removed:

@jmini
Copy link
Collaborator

jmini commented Jan 23, 2025

The problem is that the Author attribute in Commit is used in the push event:

"author": {
"name": "Dmitriy Zaporozhets",
"email": "dmitriy.zaporozhets@gmail.com"
}

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

No branches or pull requests

2 participants