-
Notifications
You must be signed in to change notification settings - Fork 66.3k
Closed
Labels
contentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamrestContent related to rest - overview.Content related to rest - overview.
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/git/trees?apiVersion=2022-11-28#get-a-tree
What part(s) of the article would you like to see updated?
The description for the 'Get a tree' API says "Returns a single tree using the SHA1 value for that tree.". However, it seems that the SHA1 value can be either the tree OR a commit SHA1. It would be helpful to document that either value can be used. Other APIs return links to the get tree API (e.g. get submodule contents) that use the commit SHA1, not the actual git tree SHA1.
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
contentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamrestContent related to rest - overview.Content related to rest - overview.