Skip to content

Use destructuring in diffs to make it harder to forget to include diff fields #1756

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

Merged
merged 3 commits into from
Apr 1, 2025

Conversation

Kobzol
Copy link
Member

@Kobzol Kobzol commented Apr 1, 2025

Some branch protection diff fields weren't logged previously, this should prevent that from happening in the future. This PR also denies warnings on CI.

writeln!(f, " Auto-merge: {}", auto_merge_enabled)?;
writeln!(f, " Org: {org}")?;
writeln!(f, " Name: {name}")?;
writeln!(f, " Description: {description}")?;
Copy link
Member Author

Choose a reason for hiding this comment

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

The description was originally Option<String>, which is why it was logged with :?. But recently we switched it to just String, so it doesn't make sense to print it as Debug anymore.

Copy link

github-actions bot commented Apr 1, 2025

Dry-run check results

[WARN  sync_team] sync-team is running in dry mode, no changes will be applied.
[INFO  sync_team] synchronizing github

Copy link
Member

@marcoieni marcoieni left a comment

Choose a reason for hiding this comment

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

great, thanks!

@marcoieni marcoieni added this pull request to the merge queue Apr 1, 2025
Merged via the queue into rust-lang:master with commit d23607e Apr 1, 2025
3 checks passed
@Kobzol Kobzol deleted the improve-diff branch April 1, 2025 15:14
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.

2 participants