Insights from user's answers

This commit is contained in:
mrT23
2023-07-17 15:59:57 +03:00
parent c866288b0a
commit ea27c63f13
2 changed files with 7 additions and 1 deletions

View File

@ -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:

View File

@ -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",