Skip to content

Are the parent commits of a commit accessible? #2705

Answered by nejch
kayman-mk asked this question in Q&A
Discussion options

You must be logged in to vote

@kayman-mk yes, if the API returns it then this should dynamically be added as the commit.parent_ids attribute. We do not actually track all the possible attributes GitLab returns, as it would be a lot to maintain.

Please reopen this if you have any issues with the endpoint, but generally just give it a try and see - you can also print out .attributes to see the entire response dict.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JohnVillalovos
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #2700 on October 26, 2023 14:53.