diff --git a/pr_agent/cli.py b/pr_agent/cli.py index e11ad677..daf60d56 100644 --- a/pr_agent/cli.py +++ b/pr_agent/cli.py @@ -62,7 +62,7 @@ improve / improve_code - Suggest improvements to the code in the PR as pull requ reviewer = PRInformationFromUser(args.pr_url) asyncio.run(reviewer.generate_questions()) elif command in ['user_answers']: - print(f"Processing author answers and sending review: {args.pr_url}") + print(f"Processing author's answers and sending review: {args.pr_url}") reviewer = PRReviewer(args.pr_url, cli_mode=True, is_answer=True) asyncio.run(reviewer.review()) else: diff --git a/pr_agent/settings/pr_reviewer_prompts.toml b/pr_agent/settings/pr_reviewer_prompts.toml index 309d95d8..99e00e6b 100644 --- a/pr_agent/settings/pr_reviewer_prompts.toml +++ b/pr_agent/settings/pr_reviewer_prompts.toml @@ -23,6 +23,12 @@ You must use the following JSON schema to format your answer: "description": "yes\\no question: does this PR have relevant tests ?" }, {%- endif %} +{%- if question_str %} + "Insights from user's answers": { + "type": "string", + "description": "shortly summarize the insights you gained from the user's answers to the questions" + }, +{%- endif %} {%- if require_focused %} "Focused PR": { "type": "string",