Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 11, 2025

This PR clarifies how to reference Pull Request files as MCP resources by:

  • Introducing a new “Using Pull Request Resources” section in README.md that lists the URI templates for fetching content, including the PR head commit pattern, and provides a JSON example for usage.
  • Adding a unit test Test_GetRepositoryResourcePrContent in repository_resource_test.go to verify the PR resource URI template (repo://{owner}/{repo}/refs/pull/{prNumber}/head/contents{/path*}).
  • Ensuring all existing tests pass and lint checks succeed without regression.

These changes should help users correctly specify the path parameter for PR resources and understand the available resource formats.


💬 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 Add documentation and tests for Pull Request resources Jul 11, 2025
Copilot AI requested a review from IrynaKulakova July 11, 2025 12:14
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