Skip to content

PR Merge strategy #554

Description

@gotmax23

Currently, the repositories pull request merge strategy settings (https://github.com/ansible/ansible-documentation/settings#merge-button-settings) are as follows:

PR merge strategies

We usually use squash merges which takes the PR and compresses it down into one commit which is applied on top of the repository. For many PRs, this works out well, but for others, such as #529 and #524, each commit has its own semantic purpose which should be preserved instead of squashing the PR into one commit. In these cases, we could use the rebase strategy which takes each commit from the PR and applies it separately. This poses a problem, because patchback does not support (sanitizers/patchback-github-app#35) the rebase strategy, so we cannot use these PRs with the backport-* labels that we rely on. Merge commits do not have the problems.

Therefore, I suggest enabling merge commits and disabling rebases. For most PRs, we should keep using squash to keep the Git history clean, but we should enable merge commits so we can use them when it makes sense to keep commits separated and preserve metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs_triageNeeds a first human triage before being processed.toolingThis PR affects tooling (CI, pr_labeler, noxfile, linters, etc.) but not the docs builds themselves.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions