Duplicated logic for EditMilestoneOption in milestone operations #8

Open
opened 2025-07-11 15:35:20 -05:00 by b3nw · 0 comments
Owner

In operation/milestone/milestone.go, the logic for populating the gitea_sdk.EditMilestoneOption struct is duplicated in EditMilestoneFn (for editing by ID) and EditMilestoneByNameFn (for editing by name).

Recommendation:
To improve maintainability and reduce redundancy, this logic should be extracted into a shared helper function.

In `operation/milestone/milestone.go`, the logic for populating the `gitea_sdk.EditMilestoneOption` struct is duplicated in `EditMilestoneFn` (for editing by ID) and `EditMilestoneByNameFn` (for editing by name). **Recommendation:** To improve maintainability and reduce redundancy, this logic should be extracted into a shared helper function.
b3nw added the enhancementmilestone-management labels 2025-07-11 15:45:28 -05:00
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: b3nw/gitea-mcp#8