Skip to content

Conversation

@TooAngel
Copy link
Owner

Summary

  • Fix misleading log output that displayed seconds instead of days
  • Values like -398601 now correctly display as -4.61 days

Context

The daysToMerge and daysToClose variables are named misleadingly - they actually store seconds, not days. The log output was printing raw seconds as "Days to merge: -398601.582" which looked like a bug.

The actual calculation was correct - a PR scheduled to merge on Dec 9th and checked on Dec 14th is correctly ~4.6 days past deadline.

Test plan

  • Deploy and verify log output shows sensible day values
  • Verify PR merging still works correctly

The daysToMerge/daysToClose values are stored in seconds (legacy naming),
but the log output was displaying raw seconds as if they were days.
This made values like -398601 appear as bugs when they actually
represented about -4.6 days correctly.

Now converts to actual days before logging for clarity.
@worlddriven
Copy link
Contributor

worlddriven bot commented Dec 14, 2025

🤖 Worlddriven Status

📊 Live Status Dashboard

🗓️ Merge Date: 2025-12-16 at 04:16:35 UTC (today)
📅 Started: 2025-12-14 at 08:45:23 UTC
Speed Factor: 0.18 (82% faster due to reviews)
Positive votes: 307/375 contribution weight (coefficient: 0.82)
📈 Base Merge Time: 10 days → Current: 2 days

🎯 Want to influence when this merges?

Your review matters! As a contributor to this project, your voice helps determine the merge timeline.

How to review:

  1. Check the changes
    Files changed

  2. Leave your review
    Review changes

Your options:

  • ✅ Agree & Speed Up: Approve Approving makes this merge faster
  • ❌ Disagree & Slow Down: Request changes Requesting changes delays the merge

💡 Pro tip: The more contributors who agree, the faster this gets merged!

📊 View detailed stats on the dashboard

📋 Recent Activity

2025-12-14, 08:45:31 - Pull request opened
2025-12-14, 08:45:32 - Pull request opened
2025-12-16, 04:52:01 - Pull request merged by worlddriven ✅


This comment is automatically updated by worlddriven

@worlddriven worlddriven bot merged commit 94b2b9c into master Dec 16, 2025
2 checks passed
@worlddriven worlddriven bot deleted the fix/days-to-merge-calculation branch December 16, 2025 04:52
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