Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use pygithub to get PR comments #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Feb 26, 2025

When trying to post comments to a PR which already has review comments, the action currently fails (example).

Pygithub 2.6.0 updated the PullRequestComment class and added the remaining fields we needed, so it should be easier to use PullRequestComment directly.

I tested this in Nerixyz/test-mini-cpp-project#10 where I had some additional debug logging for the comments.

One thing I was confused about was that line returns None for some review comments. However, original_line seems to be populated in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant