Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 2, 2026

Adds m/M as a duration unit for the buzz due command, enabling minute-granularity queries like buzz due 10m.

Changes

  • ParseDuration: Added minutes case to switch statement, parsing m/M suffix to time.Minute
  • Tests: Converted existing "5m invalid" test to valid case, added coverage for 1m, 10m, 30m, 0.5m, uppercase M, negatives, and zero
  • Documentation: Updated help text, error messages, and README with minutes in examples and supported units list

Example

buzz due 10m    # Goals due within next 10 minutes
buzz due 0.5m   # Goals due within next 30 seconds
buzz due 15M    # Case insensitive
Original prompt

Add support for e.g. buzz due 10m


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Note

Adds minute-level durations to buzz due, updating parsing, help text, and docs.

  • Extend ParseDuration to support m/M (including fractional minutes) alongside hours/days/weeks
  • Update CLI help and error messages to include minute examples and supported units
  • Refresh README examples and supported units list with minutes
  • Expand tests to cover minutes (1m, 10m, 30m, 0.5m, uppercase M), negatives, zero, overflow, and invalid seconds

Written by Cursor Bugbot for commit 04596b8. This will update automatically on new commits. Configure here.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 2, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Add support for buzz due command feat: add minutes support to buzz due command Jan 2, 2026
Copilot AI requested a review from narthur January 2, 2026 13:40
@narthur narthur marked this pull request as ready for review January 2, 2026 14:02
Copilot AI review requested due to automatic review settings January 2, 2026 14:02
@github-actions
Copy link

github-actions bot commented Jan 2, 2026

🚀 Pre-release Build Ready

Test builds are ready! Install directly using the bin command:

# Install the pre-release
bin install https://github.com/PinePeakDigital/buzz/releases/tag/pr-205-latest buzz-pr-205
# Run the pre-release
buzz-pr-205
# Uninstall the pre-release
bin remove buzz-pr-205

Direct Download Links

Or download binaries directly from the pre-release page:

💡 No GitHub login required for downloads!

🗑️ This pre-release will be automatically deleted when the PR is closed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds minute-granularity support to the buzz due command, enabling queries like buzz due 10m to find goals due within the next 10 minutes. The implementation adds m/M as a duration unit alongside existing hours, days, and weeks.

  • Added minutes case to ParseDuration function to handle m/M suffix
  • Updated comprehensive test coverage including edge cases (fractional minutes, uppercase, negative, zero)
  • Updated all user-facing documentation (help text, error messages, README) to include minutes in examples and supported units

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
beeminder.go Added minutes case to ParseDuration switch statement and updated function documentation
beeminder_test.go Added 8 new test cases for minutes functionality (1m, 10m, 30m, 0.5m, uppercase M, negative, zero) and converted invalid "5m" test to use "5s"
main.go Updated help text and error messages to include minutes in examples and supported units list
README.md Added minutes to documentation with example usage and supported units list

@narthur narthur merged commit 592c60c into main Jan 2, 2026
13 checks passed
@narthur narthur deleted the copilot/add-support-for-buzz-due branch January 2, 2026 14:35
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