Skip to content

fix: pluralise time units in created time output#691

Merged
bupd merged 1 commit into
goharbor:mainfrom
adityashekhawat1999:fix-time-pluralisation
Mar 15, 2026
Merged

fix: pluralise time units in created time output#691
bupd merged 1 commit into
goharbor:mainfrom
adityashekhawat1999:fix-time-pluralisation

Conversation

@adityashekhawat1999

@adityashekhawat1999 adityashekhawat1999 commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

Changes
Before:
before
After:
after

  • Updated time formatting logic to correctly pluralise time units (minute, hour, day) based on their values.
  • Verified the behaviour by building and running the Harbor CLI locally and checking the updated output.

Note
This is a small UX improvement so i addressed it directly in a PR rather than opening a separate issue first.

Signed-off-by: Aditya Pratap Singh Shekhawat <adityashekhawat@Adityas-MacBook-Air.local>

@qcserestipy qcserestipy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the contribution! However, our project policy requires that every PR is linked to a pre-existing, approved issue. Could you please open an issue describing the pluralisation bug first and reference it in this PR? Without a linked issue, we'll need to close this PR. Thanks for understanding!

@adityashekhawat1999

Copy link
Copy Markdown
Contributor Author

Thanks for the contribution! However, our project policy requires that every PR is linked to a pre-existing, approved issue. Could you please open an issue describing the pluralisation bug first and reference it in this PR? Without a linked issue, we'll need to close this PR. Thanks for understanding!

Thanks i have opened the issue

@NucleoFusion NucleoFusion left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm
Thanks for the contribution

@bupd bupd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@bupd bupd merged commit b9a5cac into goharbor:main Mar 15, 2026
1 check passed
AMAN-sharma07 pushed a commit to AMAN-sharma07/harbor-cli that referenced this pull request Mar 26, 2026
NishchayRajput pushed a commit to NishchayRajput/harbor-cli that referenced this pull request Mar 28, 2026
Signed-off-by: Nishchay Rajput <nishchayr@iitbhilai.ac.in>
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: Incorrect pluralisation in created time output

4 participants