mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 03:15:17 +00:00
Insights from user's answers
This commit is contained in:
parent
c866288b0a
commit
ea27c63f13
2 changed files with 7 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ improve / improve_code - Suggest improvements to the code in the PR as pull requ
|
||||||
reviewer = PRInformationFromUser(args.pr_url)
|
reviewer = PRInformationFromUser(args.pr_url)
|
||||||
asyncio.run(reviewer.generate_questions())
|
asyncio.run(reviewer.generate_questions())
|
||||||
elif command in ['user_answers']:
|
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)
|
reviewer = PRReviewer(args.pr_url, cli_mode=True, is_answer=True)
|
||||||
asyncio.run(reviewer.review())
|
asyncio.run(reviewer.review())
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -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 ?"
|
"description": "yes\\no question: does this PR have relevant tests ?"
|
||||||
},
|
},
|
||||||
{%- endif %}
|
{%- 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 %}
|
{%- if require_focused %}
|
||||||
"Focused PR": {
|
"Focused PR": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue