Skip to content

Retry button if there are failed status checks - Frontend

What does this MR do and why?

Adds a retry button to the MR widget for each failed status check. This calls the new retry API from Retry button if there are failed status checks (#383200 - closed)

Note that this implementation does not exactly match the designs but rather uses the existing shared MR Widget actions style (showing text along side icon, action inside dropdown menu on small devices). This will be tackled separately in Draft: Allow MR widget actions to be icon-only ... (!106882 - closed)

Screenshots or screen recordings

Before After
retry-before-sm retry-after-sm
retry-before-lg retry-after-lg

How to set up and validate locally

  1. Create external status check https://docs.gitlab.com/ee/user/project/merge_requests/status_checks.html#view-the-status-checks-on-a-project (you can use example.com for url to ensure the status check is always failed)
  2. Create MR for a project
  3. Expand the collapsed Status Checks MR widget
  4. Click retry

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #385218 (closed)

Edited by Elwyn Benson

Merge request reports