Skip to content

Conversation

@amustaque97
Copy link
Contributor

Closes: #2192

@github-actions
Copy link

github-actions bot commented Dec 22, 2025

Dry-run check results

[WARN  sync_team] sync-team is running in dry mode, no changes will be applied.
[INFO  sync_team] synchronizing crates-io
[INFO  sync_team] synchronizing github
[INFO  sync_team] 💻 Repo Diffs:
    📝 Editing repo 'rust-lang/bors':
      Rulesets:
          Ruleset for main
            No changes

@amustaque97 amustaque97 force-pushed the feat/2192-implement-ruleset-bypass-actors branch 2 times, most recently from 29a954f to 023b6b5 Compare December 22, 2025 18:45
source_type: RulesetSourceType::Repository,
enforcement: RulesetEnforcement::Active,
bypass_actors: None,
bypass_actors: None, // Will be populated when applying the diff
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can discuss if this needs to be changed. I can think of making ID resolution methods available on the read client.

I'm okay with this comment because the current implementation is read-only

@amustaque97 amustaque97 marked this pull request as ready for review December 23, 2025 08:01
@amustaque97 amustaque97 force-pushed the feat/2192-implement-ruleset-bypass-actors branch from e1c1ba6 to 0330575 Compare January 7, 2026 04:32
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.

Can you edit a toml file that can take advantage of this so that we can test this PR later? (I still need to review it before testing it)

#[serde(rename_all = "snake_case")]
pub(crate) enum RulesetBypassMode {
Always,
#[serde(rename = "pull_request")]
Copy link
Member

Choose a reason for hiding this comment

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

isn't rename_all = "snake_case" already doing this rename?

@jieyouxu jieyouxu added needs-infra-admin-review This change requires one of the `infra-admins` to review. S-waiting-on-review Status: waiting on review from a team/WG/PG lead, an infra-admin, and/or a team-repo-admin. labels Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-infra-admin-review This change requires one of the `infra-admins` to review. S-waiting-on-review Status: waiting on review from a team/WG/PG lead, an infra-admin, and/or a team-repo-admin.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement bypass actors for rulesets based on allowed_merge_teams and merge_bots

3 participants