Skip to content

Create CI task to fail PR if merge commit exists #12259

@nrmancuso

Description

@nrmancuso

Noticed at #12256 (comment), even though we have a bunch of checks in place for commit message, stale PR branch, etc., we do not fail CI for merge commits in PR branches.

I see github action https://github.com/greenled/no-merge-commits-check, maybe we can re-use the script in this repo and create a CI task to fail build if merge commits exist, and provide a message with link to https://checkstyle.org/beginning_development.html#Starting_Development .

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions