Skip to content

Cannot merge Pullrequest with commits but without changes #6870

Closed
@jambalaja9

Description

@jambalaja9

Description

This error always occurs while fixing a mergeconflict on a protected branch.

In the Example:
The protected branch is "master" for continuous development.
We release some software from the "hotfix"-branch. (also protected)
To fix bugs we use feature-branches and merge these with pullrequests into "master" and "hotfix".

There are constellations that changes for "hotfix" should not come into "master".
But we want to merge the feature-branch into both protected-branches, that other developers don't see these commits when merging their own pullrequest.

When mergeconflicts occur, we merge "master" into the feature-branch.
So we are merging the protected-branch "master" into the feature-branch "feature_for_master" to solve the mergeconflicts or undo the changes manually.

After that the pullrequest shows some commits (done in the feature-branches), but there are no changes left to bring into "master".
Now gitea doesn't allow to merge the pullrequest due to a mergeconflict.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions