Skip to content

Add option for merging with a merge-commit or keep the merge strategy sets in the repository settings #36

@smartin-vossloh

Description

@smartin-vossloh

Hi @nwalfield ,

Thanks a lot for this action.

In our repositories we'd like to use the semi-linear history as merge strategy.
From our point of view this strategy offer a couple of advantages we need.
This means we want to:

  • only merge fast-forward branches (so, check it while the PRs are open, and right before the merge);
  • always have a merge commit.

Using only github settings allows enforcing the second point, but not the 1st one.

I hoped that using this fast-forward action will cover these 2 points.
Unfortunately, while it does enforce the 1st point, the 2nd one is not met.

I see various ways for implementing this:

  • either add another option to force creating a merge commit (i.e. calling the git merge command with the --no-ff option);
  • or check the repository settings and use them to set the merge strategy. (IMHO, this option could be more tricky to implement than the previous one).

Do you think the is a legit feature request for this action?

Or maybe there is already a way of doing this - so I just misused the action. In such case could you shade some light on the way to set the action to run this way?

TIA,
Regards,

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