Difference between original_commit_id and commit_id of a review comment? #24449
-
What’s the difference between original_commit_id and commit_id of a review comment? When would these be different? Documentation is not very helpful in explaining attributes.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @amit1rrr., Thanks for reaching out! If there is a change to the PR: if a subsequent commit modifies the line you specify as the |
Beta Was this translation helpful? Give feedback.
-
In the following PR, original_commit_id of one of the review comment is not even present in the list of PR commits. How can the commits disappear? Any way to fetch state of a file when that comment was made? E.g. PR: recommenders-team/recommenders#681 Review comment: recommenders-team/recommenders#681 This above review comment has original_commit_id as 168eea741e804980efe94e173088850966481d5b but this commit is not even present in the list of PR commits here. Any ideas why would this be happening? |
Beta Was this translation helpful? Give feedback.
Hi @amit1rrr.,
Thanks for reaching out! If there is a change to the PR: if a subsequent commit modifies the line you specify as the
position
.original_commit_id
should refer to the previous commit id before the last change. I hope this helps!