Skip to content

Commit

Permalink
Add pr_body to base_args for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshinishio committed Aug 19, 2024
1 parent 037d681 commit 6ca7caf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/gitauto_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ async def handle_gitauto(payload: GitHubLabeledPayload, trigger_type: str) -> No
}
)
)
base_args["pr_body"] = pr_body

# Create a remote branch
comment_body = create_progress_bar(p=20, msg="Creating a remote branch...")
Expand All @@ -179,7 +180,6 @@ async def handle_gitauto(payload: GitHubLabeledPayload, trigger_type: str) -> No
issue_body=issue_body,
reference_contents=reference_contents,
issue_comments=issue_comments,
pr_body=pr_body,
root_files_and_dirs=root_files_and_dirs,
base_args=base_args,
)
Expand Down
4 changes: 2 additions & 2 deletions services/openai/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ def run_assistant(
issue_body: str,
reference_contents: list[str],
issue_comments: list[str],
pr_body: str,
root_files_and_dirs: list[str],
base_args: BaseArgs,
) -> tuple[int, int]:
# Create a message in the thread
owner, repo, comment_url, token = (
owner, repo, comment_url, pr_body, token = (
base_args["owner"],
base_args["repo"],
base_args["comment_url"],
base_args["pr_body"],
base_args["token"],
)
data: dict[str, str | list[str]] = {
Expand Down

0 comments on commit 6ca7caf

Please sign in to comment.