-
Notifications
You must be signed in to change notification settings - Fork 830
Description
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 messageMerge 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:
class-validator/.github/semantic.yml
Line 1 in 75e135c
titleAndCommits: true |
to:
titleOnly: true
OR
Allow merge commits by changing this line:
class-validator/.github/semantic.yml
Line 2 in 75e135c
allowMergeCommits: false |
to:
allowMergeCommits: true