Skip to content

Expose web_url to Compare API endpoint

Robert Speicher requested to merge rs-api-compare-web_url into master

What does this MR do?

Exposes web_url to the Repository compare endpoint. Part of my ongoing crusade in #16661.

We have a use for this in teamDelivery as we regularly want to check the diffs between two deployments. Adding this attribute to the API response means we don't have to build it ourselves.

How to setup and validate locally (strongly suggested)

$ curl --header Private-Token:[TOKEN] 'http://localhost:3000/api/v4/projects/gitlab-org%2Fgitlab-test/repository/compare?from=master&to=feature' | jq '.web_url'

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Mayra Cabrera

Merge request reports