Skip to content

Draft: Show alert for fork commit difference with upstream [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Phil Hughes requested to merge ph/projectForkUpstreamCommitCount into master

What does this MR do?

Shows a information alert box to users on forked projects that will display the commits behind or ahead of the upstream projects default branch.

Screenshots (strongly suggested)

Ahead Behind Level
Screenshot_2021-05-13_at_11.31.41 Screenshot_2021-05-13_at_11.31.52 Screenshot_2021-05-13_at_11.32.49

On the project home we show the message in the same place as previous:

Screenshot_2021-05-13_at_11.31.41

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 #330242 (closed)

Edited by Phil Hughes

Merge request reports