LearnNewsExamplesServices
Frontmatter
id7585
titleImplement Missing #checkGhAuth Method in HealthService
stateClosed
labels
bugai
assigneestobiu
createdAtOct 20, 2025, 3:50 PM
updatedAtOct 20, 2025, 3:56 PM
githubUrlhttps://github.com/neomjs/neo/issues/7585
authortobiu
commentsCount0
parentIssue7564
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 20, 2025, 3:56 PM

Implement Missing #checkGhAuth Method in HealthService

Closed v11.0.0 bugai
tobiu
tobiu commented on Oct 20, 2025, 3:50 PM

A code review revealed that the HealthService.healthcheck method calls a private method, #checkGhAuth(), which does not exist in the file. This is a critical bug that causes the health check to fail and prevents the server from starting.

This ticket covers the implementation of the missing authentication check.

Acceptance Criteria

  1. A new private method, #checkGhAuth(), is implemented in HealthService.mjs.
  2. The method executes the gh auth status command.
  3. It correctly parses the output of the command to determine if the user is authenticated with github.com.
  4. It returns an object with the shape { authenticated: boolean, error?: string }.
    • authenticated should be true if login is successful, false otherwise.
    • error should contain an informative message if authentication fails.
tobiu assigned to @tobiu on Oct 20, 2025, 3:50 PM
tobiu added the bug label on Oct 20, 2025, 3:50 PM
tobiu added parent issue #7564 on Oct 20, 2025, 3:50 PM
tobiu added the ai label on Oct 20, 2025, 3:50 PM
tobiu referenced in commit b2de72b - "Implement Missing #checkGhAuth Method in HealthService #7585" on Oct 20, 2025, 3:56 PM
tobiu closed this issue on Oct 20, 2025, 3:56 PM