Skip to content

Add Message for "Squash commits" option when at disabled state in MR form

Samantha Ming requested to merge 223029-squash-commit-tooltip-mr-form into master

Issue #17613 (closed)

MR Changes
Part 1 > !33099 (merged) BE implementation
Part 2 > !33827 (merged) FE implementation of squash option and MR form
Part 3 > !34891 (merged) FE implementation of squash option in MR widget
Part 4 > !35081 (merged) FE implementation of squash option tooltip in MR widget
👉 Part 5 > (current) FE implementation of squash option message in MR form
Part 6 > !35392 (merged) Additional spec for testing edge case for part 2
Docs > !33930 (merged) Documentation

What does this MR do?

This MR will add a message informing the user why the squash commits checkbox is disabled. (There will be no message when the checkbox is enabled)

Project Setting MR Form Message
Required image
Do not allow image
Allow image
Encourage image

Testing Case

  1. Go to New or Edit Merge Request
  • Depending on the project setting, it will display the correct message
Project Setting Message
Do not allow not applicable, hidden
Require Required in this project
Allow no message
Encourage no message

With Message

image

No Message

image

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • 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

Closes #223029 (closed)

Edited by Thong Kuah

Merge request reports