Skip to content

Conversation

@DylanDevelops
Copy link
Owner

Adds a check to ensure milestone names are unique within a project, blocking creation if the name is already used for an active or finished milestone. Improves error messaging for failed milestone creation.

Pull Request Checklist

  • I have read and followed the contribution guidelines.
  • My pull request targets the main branch of tmpo.
  • I have tested these changes locally on my machine.

Description

This pull request adds a validation step to the milestone creation command to prevent duplicate milestone names, improving data integrity and user experience. Now, if a milestone name has already been used (either for an active or finished milestone), the command will display a clear error message and exit, guiding the user on how to proceed.

Milestone name validation:

  • Added a check in cmd/milestones/start.go to ensure that a milestone name is not reused for the same project, whether the milestone is currently active or has been finished in the past. Displays specific error messages based on milestone status and prevents creation if a conflict is found.

Screenshots

Screenshot 2025-12-30 at 6 10 24 PM Screenshot 2025-12-30 at 6 10 34 PM

@DylanDevelops DylanDevelops changed the title fix: More user friendly error messages on creation of milestone fix: More user friendly error messages on creation of milestones Dec 31, 2025
Adds a check to ensure milestone names are unique within a project, blocking creation if the name is already used for an active or finished milestone. Improves error messaging for failed milestone creation.
@DylanDevelops DylanDevelops force-pushed the ravel/user-friendly-error branch from 6667a25 to 0d71c99 Compare December 31, 2025 01:13
@DylanDevelops DylanDevelops merged commit e6efab8 into main Dec 31, 2025
6 checks passed
@DylanDevelops DylanDevelops deleted the ravel/user-friendly-error branch December 31, 2025 01:15
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