v1

latestOpenAPI 3.0.32026-07-24354865.6 KB
Comparison

File comparison

Returns a comparison for a specific file path

get/{service}/{owner_username}/repos/{repo_name}/compare/file/{file_path}

Path parameters

file_pathstring required

file path

owner_usernamestring required

username from service provider

repo_namestring required

repository name

service'bitbucket' | 'bitbucket_server' | 'github' | 'github_enterprise' | 'gitlab' | 'gitlab_enterprise' required

Git hosting service provider

Query parameters

basestring

base commit SHA (head also required)

headstring

head commit SHA (base also required)

pullidinteger

pull ID on which to perform the comparison (alternative to specifying base and head)

Response

{"stackTrail":"components:schemas:FileComparison:properties:name","oasType":"schema","type":"unknown"}
has_diffboolean required
{"stackTrail":"components:schemas:FileComparison:properties:stats","oasType":"schema","type":"unknown"}
{"stackTrail":"components:schemas:FileComparison:properties:change_summary","oasType":"schema","type":"unknown"}