Skip to content

fix: floor bounty amounts in issue meta titles#1604

Open
santoslgl01-web wants to merge 1 commit intobountysource:masterfrom
santoslgl01-web:fix/issue-566-bounty-rounding
Open

fix: floor bounty amounts in issue meta titles#1604
santoslgl01-web wants to merge 1 commit intobountysource:masterfrom
santoslgl01-web:fix/issue-566-bounty-rounding

Conversation

@santoslgl01-web
Copy link
Copy Markdown

Summary

Fixes #566

This updates issue meta-title bounty formatting to floor fractional dollar amounts before rendering whole-dollar labels, matching the behavior already described for badges/GitHub plugin output. For example, $5.50 now renders as $5 instead of rounding up to $6.

Changes

  • Add a small helper method for whole-dollar currency formatting in issue meta titles
  • Apply it to open bounty and paid bounty meta-title branches
  • Add helper specs covering fractional open and paid bounty amounts

Testing

  • git diff --check
  • bundle exec rspec spec/helpers/issue_meta_tags_helper_spec.rb could not run in this environment because the project requires Ruby 2.7.1, while the available Ruby is 2.6.10 and Bundler refused to install/run gems.

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in — please let me know if any changes are needed. Happy to update the PR. Thanks! 🙂

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in — please let me know if any changes are needed. Happy to update the PR. Thanks!

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in \u2014 please let me know if any changes are needed. Happy to update the PR. Thanks! \ud83d\ude42

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in — please let me know if any changes are needed. Happy to update the PR. Thanks! 🙂

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in on this PR — please let me know if any changes are needed. Happy to update it. Thanks! 🙂

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.

Bounty display is off 1 $

1 participant