LearnNewsExamplesServices
Frontmatter
id7481
titleImplement Pull Request API Endpoints
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 14, 2025, 11:21 AM
updatedAtOct 14, 2025, 11:22 AM
githubUrlhttps://github.com/neomjs/neo/issues/7481
authortobiu
commentsCount0
parentIssue7477
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 14, 2025, 11:22 AM

Implement Pull Request API Endpoints

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 14, 2025, 11:21 AM

This ticket covers the implementation of the core pull request-related endpoints for the GitHub Workflow MCP server. This provides the foundational functionality for the AI agent to begin interacting with pull requests.

The following endpoints have been implemented:

  • GET /pull-requests
  • POST /pull-requests/:pr_number/checkout
  • GET /pull-requests/:pr_number/diff

Acceptance Criteria

  1. A new pullRequestService.mjs is created in the services directory.
  2. The service contains functions that wrap the corresponding gh CLI commands:
    • listPullRequests uses gh pr list
    • checkoutPullRequest uses gh pr checkout
    • getPullRequestDiff uses gh pr diff
  3. The routes/pullRequests.mjs file is updated to call these new service functions.
  4. The endpoints correctly handle requests and return the expected JSON data or plain text diff.
tobiu assigned to @tobiu on Oct 14, 2025, 11:21 AM
tobiu added parent issue #7477 on Oct 14, 2025, 11:22 AM
tobiu added the enhancement label on Oct 14, 2025, 11:22 AM
tobiu added the ai label on Oct 14, 2025, 11:22 AM
tobiu referenced in commit 6f9954d - "Implement Pull Request API Endpoints #7481" on Oct 14, 2025, 11:22 AM
tobiu closed this issue on Oct 14, 2025, 11:22 AM