Skip to content

question: merging into PR branches causes semantic-pull-request check to fail #1524

@braaar

Description

@braaar

Description

Updating a PR branch by clicking the button that prompts you to do so creates a commit with a non-conventional commit message, causing the semantic-pull-requests check to fail.

Minimal code-snippet showcasing the problem
See example PR with a very simple docstring change where this occurred

Expected behavior

I would expect that either the automated merge commit would use conventional commit message, or that semantic-pull-request would ignore that commit.

Actual behavior

  • Fork the repository
  • Make your changes using conventional commit messages (e.g. fix: bla bla bla)
  • Create a PR with your fix, using correct syntax for your PR title
  • (a week passes, your branch is now out of date)
  • Click the update button, merging develop into your branch with message Merge branch 'develop' into <your-branch>
  • Semantic pull requests check now fails

Possible solutions:

Reconfigure the semantic-pull-request action to only check the PR title by changing this line:

titleAndCommits: true

to:

titleOnly: true

OR

Allow merge commits by changing this line:

allowMergeCommits: false

to:

allowMergeCommits: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionQuestions about the usage of the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions