跳到主要内容

openhands.resolver.send_pull_request

update_existing_pull_request

def update_existing_pull_request(github_issue: GithubIssue,
github_token: str,
github_username: str | None,
patch_dir: str,
llm_config: LLMConfig,
comment_message: str | None = None,
additional_message: str | None = None) -> str

Update an existing pull request with the new patches.

Arguments:

  • github_issue - The issue to update.
  • github_token - The GitHub token to use for authentication.
  • github_username - The GitHub username to use for authentication.
  • patch_dir - The directory containing the patches to apply.
  • llm_config - The LLM configuration to use for summarizing changes.
  • comment_message - The main message to post as a comment on the PR.
  • additional_message - The additional messages to post as a comment on the PR in json list format.