Skip to content

Commit

Permalink
Fix reaction creation for passed code reviews ❤️
Browse files Browse the repository at this point in the history
The reaction for passed code reviews was previously being created on the commit itself. This change ensures that the reaction is correctly added to the comment instead. This makes our positive feedback more visible and engaging.
  • Loading branch information
TechNickAI committed Jul 13, 2023
1 parent c314302 commit 4168f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aicodebot_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
if review_status == "PASSED":
if os.getenv("INPUT_COMMENT_ON_PASSED"):
commit_comment = commit.create_comment(comment)
commit.create_reaction("heart")
commit_comment.create_reaction("heart")
print("✅️ Code review passed!")
elif review_status == "FAILED":
commit_comment = commit.create_comment(comment)
Expand Down

0 comments on commit 4168f43

Please sign in to comment.