Frontmatter
| id | 7558 |
| title | Convert labelService to LabelService Neo.mjs Class |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Oct 20, 2025, 12:43 AM |
| updatedAt | Oct 20, 2025, 12:47 AM |
| githubUrl | https://github.com/neomjs/neo/issues/7558 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | 7536 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Oct 20, 2025, 12:47 AM |
This ticket covers refactoring
ai/mcp/server/github-workflow/services/labelService.mjsinto a singletonLabelServiceclass that extendsNeo.core.Base. This service is responsible for listing repository labels.Acceptance Criteria
ai/mcp/server/github-workflow/services/labelService.mjsis renamed toLabelService.mjs.LabelServiceclass that extendsNeo.core.Baseand is configured as a singleton.listLabelsfunction is converted into a class method.listLabelsmethod is updated to return a structured error object on failure, instead of throwing an exception.ai/mcp/server/github-workflow/services/toolService.mjsis updated to use the newLabelServiceclass.list_labelstool continues to function correctly after the refactoring.