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

Fix allow_auto_merge in combination with repository archiving #74

Merged
merged 2 commits into from
Mar 16, 2024

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Mar 16, 2024

  1. Archived repositories might not return non-required attributes, which allow_auto_merge is.
  2. Archived repositories should not be modified.

The unwrap_or(false) part isn't ideal, but in this case we simply cannot query the GH state, so there's probably no way to calculate the real diff. In theory, this could cause us to miss auto-enabling auto merge for a repository that is being unarchived, during the first sync, but it should be resolved on the following sync. Actually, it should be fine, as the diff won't be missed, since we are unarchiving in the first place, so there is some diff.

@Kobzol Kobzol requested a review from Mark-Simulacrum March 16, 2024 14:57
@Mark-Simulacrum Mark-Simulacrum merged commit 92c3e8a into rust-lang:master Mar 16, 2024
1 check 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.

2 participants