Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STA-3724] automerge filters: fix early return in conventional commit filter #60

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

meorphis
Copy link

Before we were always returning inside the for (const commit of pullRequest.conventionalCommits) loop which meant that we would only ever look at the first commit (in both the match-all and the match-at-least-one case). The default return statements need to happen outside of the loop.

@meorphis meorphis requested a review from dgellow January 31, 2024 21:29
@meorphis meorphis force-pushed the emorphis-release-please-fix-conv-commit-filter branch from fe81a1d to ad7d307 Compare January 31, 2024 21:32
@dgellow
Copy link
Member

dgellow commented Jan 31, 2024

Thanks, the existing tests didn't catch this?

Copy link
Member

@dgellow dgellow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks Eric, that's a good find!

@meorphis meorphis merged commit 3f832ff into main Jan 31, 2024
4 checks passed
@meorphis meorphis deleted the emorphis-release-please-fix-conv-commit-filter branch January 31, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants