"File" comments all get outdated when you push anything, even if that file isn't touched #86527
Replies: 10 comments 8 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.
-
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