Skip to content

Commit

Permalink
fixing workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
EcZachly committed Jun 20, 2024
1 parent 7da2a41 commit f83b503
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/generate_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ def main(files_to_process: list):

for filename in files_to_process:
logger.info("processing:" +filename)
file_path = os.path.join('src', filename)
if file_path in files_to_process:
prompt = f"Make sure this file {file_path} follows all the right naming and python conventions. Make any call outs you see!"
comment = get_feedback(filename, system_prompt, prompt)
if GIT_TOKEN and GIT_REPO and pr_number:
post_github_comment(GIT_TOKEN, GIT_REPO, pr_number, comment, filename)
with open(filename, 'r') as file:
content = file.read()
print(content)
prompt = f"Make sure this file {filename} with this content: {content} follows all the right naming and python conventions. Make any call outs you see!"
comment = get_feedback(filename, system_prompt, prompt)
if GIT_TOKEN and GIT_REPO and pr_number:
post_github_comment(GIT_TOKEN, GIT_REPO, pr_number, comment, filename)

if __name__ == "__main__":
pr_number = int(sys.argv[1])
Expand Down

0 comments on commit f83b503

Please sign in to comment.