Skip to content

Conversation

@codegen-sh
Copy link
Contributor

@codegen-sh codegen-sh bot commented Mar 19, 2025

This PR adds the edit_pr tool with a clear message about not pushing code changes to the PR branch.

Key changes:

  1. Created a new edit_pr.py file with a clear message in the observation that states:
    "Successfully updated PR #{pr_number} ({', '.join(updates)}). Note that this tool only updates PR metadata and does not push code changes to the PR branch. To add code changes to a PR, make your edits and then use the `create_pr` tool while on the PR branch."
    
  2. Added the GithubEditPRTool class to the tools.py file with a descriptive name and documentation
  3. Added GithubEditPRTool, GithubViewPRCheckTool, and GithubCheckoutPRTool to the get_workspace_tools function
  4. Fixed the GithubViewPRCheckTool class to use the correct input schema

These changes ensure that all the GitHub PR-related tools are properly registered and available for use, and that users are clearly informed that the edit_pr tool only updates metadata and not code changes.

@jayhack jayhack closed this Mar 19, 2025
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