[go: up one dir, main page]

Skip to content

Add squash quick action for merge requests

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Issue

Projects have a default shallow clone depth of 20 commits. For merge requests with more than 20 commits, danger-review-local on GitLab projects fails with:

fatal: not a valid branch point: '3ddffaacb3735622fc85e7efc0ec1daa6be27b57'
fatal: couldn't find remote ref refs/heads/danger_base

The current implementation makes it impossible for contributor who only uses the Web IDE from making the pipeline pass after 20 commits.

  • contributor may not want to clone the GitLab repo to their local computers due to the large size (> 1 GB)
  • contributor may not want to use GitPod because
    • of the long loading time (> 20 minutes on a fresh start)
    • it blocks registration from certain email address domains
    • it has a free tier limit of 10 hours (unverified) or 50 hours (verified) per month on standard class instances

Proposal

Add a /squash quick action that when called with:

  • /squash: squashes all commits on merge request branch, and keep existing commit message
    • solves the danger-review-local issue
  • /squash "commit message": squashes all commits on merge request branch, and sets commit message (which may be multiline)

Implementation guide

Edited by 🤖 GitLab Bot 🤖