Skip to content

Projects API show the project's squash option

Emma Sax requested to merge (removed):projects-api-show-squash-option into master

What does this MR do?

The Projects API should show whether a project requires (always), prevents (never), allows (default_off), or encourages (default_on) squashing.

This MR should assist in resolving #261458 (closed), and all associated screenshots and information is in that issue.

Some discussion around these changes and testing already occurred in https://gitlab.com/emmahsax/gitlab/-/merge_requests/1.

This MR was originally based off of !62262 (closed). After this MR merges, then that one can be closed. I also had attempted to make the same MR previously a couple of times (!63502 (closed) and !63499 (closed)), and both of those times, the commits got messy with rebasing and having to merge with lots of commits. So I'm trying again. When this (🤞🏼 ) MR finally merges, then all of those other MRs can be closed. My apologies in advance for the duplicate MRs.

Screenshots (strongly suggested)

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

Related to #261458 (closed)

Edited by Emma Sax

Merge request reports