Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 11, 2025

This PR enhances the GitHub MCP Server by:

  1. Adding a new unit test in Test_GetFileContents to validate fetching file contents from a pull request head via ref: refs/pull/{pr_number}/head.
  2. Adding a resource template test Test_GetRepositoryResourcePrContent to verify the PR resource URI follows the repo://{owner}/{repo}/refs/pull/{prNumber}/head/contents{/path*} template.
  3. Clarifying documentation in the README under get_file_contents to include an example of using refs/pull/{pr_number}/head for fetching PR content.

These updates address user confusion around PR resource references and the proper path/ref format, ensuring smooth PR context retrieval workflows and improved guidance.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

🚧 Copilot coding agent is using an experimental model for this task. Please take the time to report feedback with the 👍 or 👎 buttons.

Copilot AI changed the title [WIP] docs: Add documentation and examples for Pull Request resources (fixes #652) Add PR head content fetch support and documentation clarification Jul 11, 2025
Copilot AI requested a review from IrynaKulakova July 11, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants