Skip to content

Conversation

@alan-agius4
Copy link
Contributor

The pullRequestCommitCount was being conditionally reassigned in multiple places within the GithubApiMergeStrategy. This duplicated logic and made it harder to follow.

This change refactors the logic to determine the commit count in a single location using a ternary operator, improving readability and maintainability.

@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Oct 23, 2025
The `pullRequestCommitCount` was being conditionally reassigned in multiple places within the GithubApiMergeStrategy. This duplicated logic and made it harder to follow.

This change refactors the logic to determine the commit count in a single location using a ternary operator, improving readability and maintainability.
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

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

LGTM

@alan-agius4 alan-agius4 merged commit 43cd9ca into angular:main Oct 23, 2025
8 checks passed
@alan-agius4
Copy link
Contributor Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the commit-count branch October 23, 2025 17:15
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants