rust-lang / team

Rust teams structure
Apache License 2.0
312 stars 287 forks source link

Add `merge-bots` configuration per branch protection #1576

Closed Kobzol closed 1 hour ago

Kobzol commented 1 month ago

Instead of just assuming that when bors (homu) is enabled for a repository, all its branches will be automatically managed by it, this PR adds an opt-in mechanism to use bors/homu for specific branch protections.

MarcoIeni commented 2 hours ago

all its repositories will be automatically managed by it

What do you mean?

A repo doesn't have multiple repositories. Do you mean "branches"?

Kobzol commented 1 hour ago

Yes, I indeed meant branches, sorry =D

This PR shouldn't have any user-facing changes, so hopefully should be relatively safe. Once it lands, I'll change sync-team to read bors permissions from the branch protection instead from the array of bots. That should also be safe, because there is currently no repository in team that is managed by homu xD

MarcoIeni commented 1 hour ago

Merged because it only changes the schema and code 👍