Merge pull request #90 from PierreGode/PierreGode-patch-5

Update review.yml
This commit is contained in:
PierreGode 2024-12-10 14:18:13 +01:00 committed by GitHub
commit 471b78e307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,8 +56,8 @@ jobs:
diff_url = event['pull_request']['url'] + "/files"
pr_files = requests.get(diff_url, headers=headers).json()
diff_text = ""
inline_comments = [] # Collect inline comments to post
diff_text = ""
for fdata in pr_files:
filename = fdata['filename']
@ -107,7 +107,7 @@ jobs:
headers={'Authorization': f'token {token}', 'Accept': 'application/vnd.github.v3+json'},
json=review_data)
review_response.raise_for_status()
print("Review comments posted successfully.")
print("Inline review comments posted successfully.")
else:
print("No critical issues found in the code.")