"File" comments all get outdated when you push anything, even if that file isn't touched #86527
Replies: 18 comments 9 replies
-
GitHub comments on specific lines or sections of a file are associated with a specific commit. When you push changes to a repository, GitHub creates a new commit for those changes. Even if the changes are made in a different file, the commit hash is different. If you push changes to the repository, GitHub considers the comments as associated with a previous commit, and it marks them as outdated. I hope that helps. |
Beta Was this translation helpful? Give feedback.
-
This behavior is incredible frustrating. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Commenting to say that I also want this fixed/changed makes the on file comment feature basically useless and I default to comments on the top of files like others here |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I'd like to get it fixed as well |
Beta Was this translation helpful? Give feedback.
-
I agree that GitHub should change this and make outdated comments an optional feature. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
+1 to stop the auto-close |
Beta Was this translation helpful? Give feedback.
-
Meh. This isn't an issue. It's a "discussion". The "answer" is to change the feature so that comments attached to files persist through pushes the same way that in-file comments (that aren't inside changed code) do. And to be precise, the only things that should make a file-attached comment stale should be thing like:
The Things that shouldn't make a comment stale are:
I mean, just think about it. Comments on lines of a file persist even when the line above and the line below change. You could even make a case that if the file name changes, you could keep the comment. But the minimum bar should be: if nothing about the file changes: make the comment persist through a push. So the result of this discussion should be the creation of an issue that establishes these new feature requirements. Then this discussion can be closed as answered. |
Beta Was this translation helpful? Give feedback.
-
just adding a +1 that this was not the behavior that I expected - I expected file-level comments to persist through changes unless the file was deleted in the change. I'm going to have to go delete and re-create a bunch of comments (I use linked comments to create "tours" through particularly large PRs to walk reviewers and readers through the changes), and also update some external places that link to them (I'd have to do this even if I didn't change them, because the previous href to the comment no longer works). This basically makes this feature useless, imo, and I'll go back to using top-line comments 😢 |
Beta Was this translation helpful? Give feedback.
-
What PR review software can we switch to which has not been abandoned like github? |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Hey there, we're going through our backlog of posts right now and I've relabelled this to product feedback, this will stop the dormancy notifications and allow our team to review. Another action will trigger a comment with more details. |
Beta Was this translation helpful? Give feedback.
-
@queenofcorgis Is there any progress after reviewing this? We have migrated to GitHub from Azure DevOps and so everyone in my team myself included cries for coming back. This is very frustrating. I am ok with marking the comments as outdated, because lines numbers could change and comment could appear on wrong place. But just show the outdated comments anyway, one can see it outdated and will be aware of that. Removing the comment from the latest version makes absolutely no sense. |
Beta Was this translation helpful? Give feedback.
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Just experienced this for the first time! My workflow and use-case was: |
Beta Was this translation helpful? Give feedback.
-
+1 to keep it alive. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
This may make some technical sense for some reason unknown to me, but I think the retention of comments should at least be attempted if a push doesn't touch that file.
Beta Was this translation helpful? Give feedback.
All reactions