Skip to content

Commit

Permalink
reiterate review blockers prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
robedwards committed May 27, 2024
1 parent ace304a commit 89bbcf6
Showing 1 changed file with 32 additions and 27 deletions.
59 changes: 32 additions & 27 deletions devai-cli/src/devai/commands/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,34 +507,39 @@ def blockers(context):


source='''
CODE:
{}
'''
### Context (code) ###:
{}
'''
qry='''
INSTRUCTIONS:
Analyze the code and check if there are components that are in the BLOCKERS list below.
Provide explanation why you made the decision.
BLOCKERS: "IBM MQ"
Output a JSON response using following JSON schema:
{
"onboarding_status": "",
"blockers": []
}
JSON example when BLOCKER is detected:
{
"onboarding_status": "BLOCKED",
"blockers": ['Jenkins']
}
JSON example when BLOCKER is NOT detected:
{
"onboarding_status": "APPROVED",
"blockers": []
}
'''
### Instruction ###
You are an experienced software engineer specializing in blocking. Analyze the code and check if there are components that are in the BLOCKERS list below.
Provide explanation why you made the decision.
BLOCKERS: "IBM MQ"
### Output Format ###
Provide your findings in a structured JSON format using following JSON schema:
{
"onboarding_status": "",
"blockers": []
}
JSON example when BLOCKER is detected:
{
"onboarding_status": "BLOCKED",
"blockers": ['Jenkins']
}
JSON example when BLOCKER is NOT detected:
{
"onboarding_status": "APPROVED",
"blockers": []
}
### Example Dialogue ###
'''
# Load files as text into source variable
source=source.format(format_files_as_string(context))

Expand Down

0 comments on commit 89bbcf6

Please sign in to comment.