Repository navigation
fix: detect default branch in scalafmt when base_branch is not set - #257
Merged
Merged
Conversation
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Pull Request Overview
✅ No blocking issues noticed
No blocking findings were identified. Automated coverage for the new branch-detection paths is still recommended.
Test suggestions
- Verify automatic detection obtains the default branch and uses it for skipping and diff calculation.
- Verify an explicitly configured base branch bypasses automatic detection.
- Verify empty detection output causes failure with the documented error message.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify automatic detection obtains the default branch and uses it for skipping and diff calculation.
2. Verify an explicitly configured base branch bypasses automatic detection.
3. Verify empty detection output causes failure with the documented error message.
Make this review better
TIP Add a ticket key to the branch or title so the reviewer can check the PR against it. Or tell us which ticket tracker you use here.
TIP Add Codacy review.md instructions or an AGENTS.md so the reviewer knows your conventions.
TIP How was this review? Give us feedback
lolgab
enabled auto-merge (squash)
November 6, 2026 08:20
machadoit
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
scalafmtfailed on repos whose default branch is notmaster:base_branchnow defaults to empty. When empty, the default branch is detected withgit ls-remote --symref origin HEAD. Settingbase_branchexplicitly still overrides detection. The step fails with a clear message if detection returns nothing.