You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request implements shared approval evidence for sprint-related dry-run mutations, including planning, starting, closing, and rolling over sprints. It introduces schema versioning for sprint reports and updates the domain layer to automatically populate approval evidence. The review feedback highlights that the manual schema and approval assignments added to the CLI layer are redundant as the domain functions already handle these tasks. Additionally, there is a recommendation to maintain internal consistency by using the existing shell-quoting utility function within the approval logic.
The reason will be displayed to describe this comment to others. Learn more.
This logic is redundant. The gira.PlanSprint function (called at line 7454) already populates the SchemaVersion and Approval fields when in dry-run mode. Re-assigning them here in the CLI layer is unnecessary and can be removed to simplify the code.
The reason will be displayed to describe this comment to others. Learn more.
Redundant logic. gira.StartSprint already ensures the schema version and populates the approval evidence for dry-runs. These lines should be removed to keep the CLI layer clean and avoid duplicate processing.
The reason will be displayed to describe this comment to others. Learn more.
Redundant logic. gira.CloseSprint already handles schema versioning and approval evidence population for dry-runs. This duplication in the CLI layer is unnecessary.
The reason will be displayed to describe this comment to others. Learn more.
Redundant logic. The domain functions called by newSprintRolloverReport already populate these fields. This assignment in the CLI layer is unnecessary and should be removed.
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent quoting function usage. The existing code in this file uses the private shellQuoteArg (defined at line 185), while the new sprint-related functions use QuoteShellArg. For consistency within the file, consider using shellQuoteArg throughout, or unify the quoting logic across the package if QuoteShellArg is intended to be the new standard.
References
Maintain internal consistency in utility function usage within the same file. (link)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #627