LearnNewsExamplesServices
Frontmatter
id7558
titleConvert labelService to LabelService Neo.mjs Class
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 20, 2025, 12:43 AM
updatedAtOct 20, 2025, 12:47 AM
githubUrlhttps://github.com/neomjs/neo/issues/7558
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 20, 2025, 12:47 AM

Convert labelService to LabelService Neo.mjs Class

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 20, 2025, 12:43 AM

This ticket covers refactoring ai/mcp/server/github-workflow/services/labelService.mjs into a singleton LabelService class that extends Neo.core.Base. This service is responsible for listing repository labels.

Acceptance Criteria

  1. The file ai/mcp/server/github-workflow/services/labelService.mjs is renamed to LabelService.mjs.
  2. The content is replaced with a LabelService class that extends Neo.core.Base and is configured as a singleton.
  3. The existing listLabels function is converted into a class method.
  4. The listLabels method is updated to return a structured error object on failure, instead of throwing an exception.
  5. The ai/mcp/server/github-workflow/services/toolService.mjs is updated to use the new LabelService class.
  6. The list_labels tool continues to function correctly after the refactoring.
tobiu assigned to @tobiu on Oct 20, 2025, 12:43 AM
tobiu added parent issue #7536 on Oct 20, 2025, 12:43 AM
tobiu added the enhancement label on Oct 20, 2025, 12:43 AM
tobiu added the ai label on Oct 20, 2025, 12:43 AM
tobiu referenced in commit f81ef7c - "Convert labelService to LabelService Neo.mjs Class #7558" on Oct 20, 2025, 12:45 AM
tobiu closed this issue on Oct 20, 2025, 12:47 AM