-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Standardize recently added commit diff api url #4906
Conversation
Coverage decreased (-0.18%) when pulling 499cb7e9e1f620ab2932bacb239f9e016b46aa70 on alexvh:standardize_diff_api_url into e897520 on gitlabhq:master. |
Coverage decreased (-13.23%) when pulling 499cb7e9e1f620ab2932bacb239f9e016b46aa70 on alexvh:standardize_diff_api_url into e897520 on gitlabhq:master. |
Coverage decreased (-13.17%) when pulling 499cb7e9e1f620ab2932bacb239f9e016b46aa70 on alexvh:standardize_diff_api_url into e897520 on gitlabhq:master. |
I think we better change |
I agree blob should be changed. |
@alexvh +1 for this changes |
…commit Use "/commits/:sha/diff" as opposed to "/commit/:sha", keeping in line with existing api urls (e.g. "/projects/:id", etc.) Fix 500 error resulting from a diff api call with an invalid commit hash Move "/commits/:sha/blob" to "/blobs/:sha", leaving the old path for backwards compatibility. Add ability to get a single commit via "/commits/:sha"
Updated. Commit message contains details of changes. |
Looks good. Thank you |
Standardize recently added commit diff api url
Use "/commits/:sha/diff" as opposed to "/commit/:sha", keeping in line with existing api urls (e.g. "/commits/:sha/blob", "/projects/:id", etc.)