Skip to content

Add edit_pr tool with clear message about not pushing code changes #915

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

Closed
wants to merge 4 commits into from

Conversation

codegen-sh[bot]
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.

1 participant