Skip to content

Add body_suffix parameter to include VS Code header in coding agent PRs #7226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 3, 2025

This PR implements the body_suffix parameter when creating coding agent sessions to add a VS Code header to PRs created by the GitHub Copilot coding agent.

Changes Made

Modified src/github/copilotRemoteAgent.ts:

  • Added body_suffix parameter to the RemoteAgentJobPayload in the invokeRemoteAgent method
  • The header provides professional attribution with links to official documentation

Expected Behavior

When users create pull requests via the copilot coding agent, the PR description will now include a professional footer:

---

*This pull request was created by the [GitHub Copilot coding agent](https://docs.github.com/en/copilot/using-github-copilot/coding-agent) via [GitHub Pull Requests](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github) for VS Code.*

This provides clear attribution and helps users understand the source of automatically generated PRs while maintaining professional presentation with clickable links to relevant documentation and the VS Code extension marketplace.

Technical Details

The body_suffix parameter was already defined in the RemoteAgentJobPayload interface but was not being utilized. This change adds the parameter to the payload construction, ensuring that all PRs created through the coding agent will include the VS Code attribution footer.

The implementation preserves all existing functionality and conditional logic (such as the head_ref parameter for cases with pending changes).

Fixes #7225.


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

@Copilot Copilot AI changed the title [WIP] Add body_suffix parameter when creating coding agent session Add body_suffix parameter to include VS Code header in coding agent PRs Jul 3, 2025
@Copilot Copilot AI requested a review from joshspicer July 3, 2025 21:06
Copilot finished work on behalf of joshspicer July 3, 2025 21:06
@joshspicer
Copy link
Member

@copilot you don't need this part

This pull request was created by the GitHub Copilot coding agent

Copy link
Contributor Author

Copilot AI commented Jul 3, 2025

@copilot you don't need this part

This pull request was created by the GitHub Copilot coding agent

Removed the GitHub Copilot coding agent reference from the body_suffix. The PR footer now includes only the VS Code attribution. (87b1afb)

Copilot finished work on behalf of joshspicer July 3, 2025 22:06
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.

Add body_suffix parameter when creating coding agent session
2 participants