Skip to content

Feature Request: Support GitLab Merge Request Auto-Merge Option #6083

@chrxmvtik

Description

@chrxmvtik

Is your feature request related to a problem?

GitLab merge request action creates merge requests, but it requires manual intervention to complete the merge.

The idea is to enable Updatecli to manage the full lifecycle of the MR automatically, including setting the auto-merge flag, waiting for pipelines, and handling merge conflicts or retries (not sure if that's too deep).

Solution you'd like

If pipelines exist:

  • Updatecli should update the MR with the auto-merge flag so that GitLab merges automatically when pipelines succeed.
  • Optionally, Updatecli could wait for the pipeline finalization to ensure status is known before proceeding.

If no pipelines exist:

  • Updatecli should immediately merge the MR without waiting.

Benefits:

  • Reduces manual effort when working with MRs created by Updatecli.
  • Improves integration with GitLab CI/CD pipelines by aligning with existing GitLab workflow.
  • Enables fully automated dependency updates and configuration changes without human intervention.

Alternatives you've considered

No response

Anything else?

Error and Retry Handling

If the merge fails due to out-of-date branches or requires a rebase, Updatecli should support a retry mechanism to attempt auto-rebasing or re-triggering the merge.

Retries could also handle temporary GitLab API errors or transient pipeline issues.

Optional configurable retry/backoff strategy would be useful for robustness.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions