Repository
Get a commit object
Retrieve, by hash, an object representing a commit in the repository backing a project. This endpoint functions similarly to git cat-file -p <commit-id>. The returned object contains the hash of the Git tree that it belongs to, as well as the ID of parent commits.
The commit represented by a parent ID can be retrieved using this endpoint, while the tree state represented by this commit can be retrieved using the Get a tree object endpoint.
get/projects/{projectId}/git/commits/{repositoryCommitId}
Request
- Base URLhttps://api.upsun.com
- AuthOAuth 2Authorization codehttps://auth.api.platform.sh/oauth2/authorizeToken URLhttps://auth.api.platform.sh/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdstring required
repositoryCommitIdstring required
Response
Changes
No recorded changes to this operation across all 1 revision of this API.