Skip to content

fix(schedule): render */N minute as "every N minutes" - #1154

Open
MsfPablo wants to merge 1 commit into
Nano-Collective:mainfrom
MsfPablo:fix/cron-every-n-minutes
Open

fix(schedule): render */N minute as "every N minutes"#1154
MsfPablo wants to merge 1 commit into
Nano-Collective:mainfrom
MsfPablo:fix/cron-every-n-minutes

Conversation

@MsfPablo

@MsfPablo MsfPablo commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

formatCronHuman leaked raw cron syntax for */N minute expressions. */5 * * * * matched the hourly branch (any non-* minute with every other field wildcard) and rendered verbatim as every hour at minute */5.

Added an explicit every-N-minutes branch so */5 * * * * renders as every 5 minutes, and */15 * * * * as every 15 minutes.

Closes #1132.

Test plan

  • New regression formatCronHuman formats every-N-minutes without leaking cron syntax (fails without the fix, passes with it)
  • tsc --noEmit clean
  • biome check clean
  • changeset added (patch)

formatCronHuman matched */N minute expressions against the hourly
branch and rendered them verbatim as "every hour at minute */5",
leaking raw cron syntax into the human label. Add an explicit
every-N-minutes branch so "*/5 * * * *" renders as "every 5 minutes".

Closes Nano-Collective#1132
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.

[Bug] formatCronHuman prints raw "*/N" for hourly expressions

1 participant