Skip to content

Commit

Permalink
first draft
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwoer committed Aug 8, 2024
1 parent 238aa60 commit b9ac6f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ jobs:
repo = g.get_repo(os.environ['GITHUB_REPOSITORY'])
pr = repo.get_pull(int(os.environ['PR_NUMBER']))
last_commit = list(pr.get_commits())[-1]
for filename, comments in review_comments.items():
for line, comment in comments:
print("XXX", line, comment)
pr.create_review_comment(body=comment, commit=${{github.event.head_commit}}, path=filename, line=int(line))
pr.create_review_comment(body=comment, commit=last_commit, path=filename, line=int(line))
print('Code review completed and comments posted.')
except Exception as e:
Expand Down

0 comments on commit b9ac6f0

Please sign in to comment.