mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Merge pull request #90 from PierreGode/PierreGode-patch-5
Update review.yml
This commit is contained in:
commit
471b78e307
4
.github/workflows/review.yml
vendored
4
.github/workflows/review.yml
vendored
@ -56,8 +56,8 @@ jobs:
|
|||||||
diff_url = event['pull_request']['url'] + "/files"
|
diff_url = event['pull_request']['url'] + "/files"
|
||||||
pr_files = requests.get(diff_url, headers=headers).json()
|
pr_files = requests.get(diff_url, headers=headers).json()
|
||||||
|
|
||||||
diff_text = ""
|
|
||||||
inline_comments = [] # Collect inline comments to post
|
inline_comments = [] # Collect inline comments to post
|
||||||
|
diff_text = ""
|
||||||
|
|
||||||
for fdata in pr_files:
|
for fdata in pr_files:
|
||||||
filename = fdata['filename']
|
filename = fdata['filename']
|
||||||
@ -107,7 +107,7 @@ jobs:
|
|||||||
headers={'Authorization': f'token {token}', 'Accept': 'application/vnd.github.v3+json'},
|
headers={'Authorization': f'token {token}', 'Accept': 'application/vnd.github.v3+json'},
|
||||||
json=review_data)
|
json=review_data)
|
||||||
review_response.raise_for_status()
|
review_response.raise_for_status()
|
||||||
print("Review comments posted successfully.")
|
print("Inline review comments posted successfully.")
|
||||||
else:
|
else:
|
||||||
print("No critical issues found in the code.")
|
print("No critical issues found in the code.")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user