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
- A new
pullRequestService.mjs is created in the services directory.
- 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
- The
routes/pullRequests.mjs file is updated to call these new service functions.
- The endpoints correctly handle requests and return the expected JSON data or plain text diff.
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-requestsPOST /pull-requests/:pr_number/checkoutGET /pull-requests/:pr_number/diffAcceptance Criteria
pullRequestService.mjsis created in theservicesdirectory.ghCLI commands:listPullRequestsusesgh pr listcheckoutPullRequestusesgh pr checkoutgetPullRequestDiffusesgh pr diffroutes/pullRequests.mjsfile is updated to call these new service functions.