-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: Replace 'min' instead of 'm' in printDuration #30668
Core: Replace 'min' instead of 'm' in printDuration #30668
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Package BenchmarksCommit: No significant changes detected, all good. 👏 |
View your CI Pipeline Execution ↗ for commit d442866.
☁️ Nx Cloud last updated this comment at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
What I did
Changes the string to replace in
printDuration
from' m'
to' min'
. TheprettyTime
function frompretty-hrtime
uses the suffix'min'
rather than'm'
; as a result,printDuration
currently prints times like:rather than:
Testing
Manual testing
We could probably add some unit tests for this, but I'm not sure it's worth it. Testing it manually probably requires running on a project that takes somewhere on the order of minutes to load and checking that the message looks correct.
Greptile Summary
Fixed incorrect duration formatting in the
printDuration
utility function to properly display time units in build progress messages.code/core/src/common/utils/print-duration.ts
from' m'
to' min'
to matchpretty-hrtime
output format💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!