update audit prompt
This commit is contained in:
@ -76,7 +76,7 @@ PROMPTS = {
|
|||||||
" - The main features and value of the documentation\n"
|
" - The main features and value of the documentation\n"
|
||||||
),
|
),
|
||||||
"review_readme_file": (
|
"review_readme_file": (
|
||||||
"Review the README_Prometheus.md (NOT the README.md file) in the repository and evaluate its quality and "
|
"Review the README_Prometheus.md in the repository and evaluate its quality and "
|
||||||
"relevance to the repository.\n\n"
|
"relevance to the repository.\n\n"
|
||||||
"Please analyze:\n"
|
"Please analyze:\n"
|
||||||
"1. Is the README_Prometheus.md file related to this specific repository? (Does it describe the actual code "
|
"1. Is the README_Prometheus.md file related to this specific repository? (Does it describe the actual code "
|
||||||
|
@ -6,24 +6,19 @@ PROMPTS = {
|
|||||||
"repositories into comprehensive documentation. You excel at analyzing codebases "
|
"repositories into comprehensive documentation. You excel at analyzing codebases "
|
||||||
"and creating clear, structured documentation."
|
"and creating clear, structured documentation."
|
||||||
),
|
),
|
||||||
|
|
||||||
"check_readme_file": (
|
"check_readme_file": (
|
||||||
"A pull request has been checked out for you. The repository is {repo_owner}/{repo_name} and "
|
"A pull request has been checked out for you. Review the file README_Prometheus.md in the repository "
|
||||||
"the PR number is {pr_number}. The following files are available:\n"
|
"and evaluate its quality and relevance to the repository.\n\n"
|
||||||
"{current_files}\n\n"
|
"Please analyze:\n"
|
||||||
"The criteria for the README file are:\n"
|
"1. Is the README_Prometheus.md file related to this specific repository? (Does it describe the actual code "
|
||||||
"1. Project Overview\n"
|
"and purpose of this repo?)\n"
|
||||||
" - Purpose and main functionality\n"
|
"2. Does it correctly explain the repository's purpose, features, and functionality?\n"
|
||||||
" - Key features\n"
|
"3. Is it comprehensive enough to help users understand and use the repository?\n"
|
||||||
"2. Repository Structure\n"
|
"4. Does it follow best practices for README documentation?\n\n"
|
||||||
" - Detailed breakdown of directories and their purposes\n"
|
"Use the `review_readme_file` tool to submit your findings.\n"
|
||||||
" - Key files and their roles\n"
|
"IMPORTANT: Do not assume that an existing README is correct. "
|
||||||
"3. Technical Details\n"
|
"Evaluate README_Prometheus.md against the codebase.\n"
|
||||||
" - Technologies used\n"
|
"DO NOT consider the filename in your analysis, only the content.\n"
|
||||||
" - Architecture overview\n"
|
"STOP after submitting the review report."
|
||||||
"4. File Contents\n"
|
|
||||||
" - Specific description of each significant file\n\n"
|
|
||||||
"Please review the README file and give feedback.\n"
|
|
||||||
),
|
),
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,8 @@ def execute(runner, worker, data):
|
|||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
|
||||||
if result.get("success"):
|
if result.get("success"):
|
||||||
round_state = runner.state["rounds"][runner.current_round]
|
round_key = str(runner.current_round)
|
||||||
|
round_state = runner.state["rounds"].setdefault(round_key, {})
|
||||||
round_state["repo_url"] = (
|
round_state["repo_url"] = (
|
||||||
f"https://github.com/{result['data']['repo_owner']}/{result['data']['repo_name']}"
|
f"https://github.com/{result['data']['repo_owner']}/{result['data']['repo_name']}"
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user