Skip to content

Conversation

@ReenigneArcher
Copy link
Member

Description

The extract_version_from_formula function was incorrectly picking up version declarations inside blocks like fails_with instead of the main formula version. Updated the logic to only consider version lines at class level (2-space indentation) and ignore those in deeper blocks (4+ spaces). Added tests to verify the behavior.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

…s during version extraction

The extract_version_from_formula function was incorrectly picking up version declarations inside blocks like fails_with instead of the main formula version. Updated the logic to only consider version lines at class level (2-space indentation) and ignore those in deeper blocks (4+ spaces). Added tests to verify the behavior.
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Dec 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0f60cc7) to head (09d7783).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #98   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          979       979           
  Branches        82        82           
=========================================
  Hits           979       979           
Flag Coverage Δ
Linux 100.00% <100.00%> (ø)
Windows 76.60% <100.00%> (ø)
macOS 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
actions/release_homebrew/main.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ReenigneArcher ReenigneArcher merged commit e685bc7 into master Dec 26, 2025
123 of 124 checks passed
@ReenigneArcher ReenigneArcher deleted the fix/release_homebrew/version-extraction branch December 26, 2025 22:05
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