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

Ignore comment edited with no changes #1911

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Feb 26, 2025

This changes it so that when GitHub sends an issue comment "edited" event with no changes, triagebot will ignore it.

For unknown reasons, sometimes when someone posts a PR review, GitHub sends an "edited" event with "changes":{}, immediately followed by a "created" event with the actual content, which doesn't make much sense. I'm pretty sure that any "edited" event without changes can be safely ignored. For example, under normal circumstances GitHub will correctly report empty bodies with the empty string (not null), so those should still continue to be handled correctly.

Fixes #1881

Copy link
Contributor

@apiraino apiraino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm down to experiment with this

@ehuss ehuss merged commit 2bbb8b6 into rust-lang:master Feb 28, 2025
3 checks passed
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.

rustbot assigned two reviewers
2 participants