8000 Merge requests no longer support merging with a large commit message · Issue #1452 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content
Merge requests no longer support merging with a large commit message #1452
Closed
@jaserieger

Description

@jaserieger

Description of the problem, including code/CLI snippet

After upgrading to python-gitlab 2.7.1 from 2.1.2 merge requests no longer consistently merge.

Having a large (more than 1000 character) merge commit message returns a 414 request too large, due to putting the commit message in query string.

mergeRequest.merge(merge_commit_message=closureNote, should_remove_source_branch=True)

The behaviour change occurred in python-gitlab 2.4.0:
878098b
#1121

Expected Behavior

Merge request should merge to the target branch with the (large) merge commit message and remove the existing source branch

Actual Behavior

gitlab.exceptions.GitlabMRClosedError exception occurs with 414 request-URI too large error

Specifications

  • python-gitlab version: 2.7.1
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): internal gitlab version 13.11.2-ee

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0