fix: Repositories.UpdateRulesetClearBypassActor sets BypassActors to empty slice by MathieuSevegny · Pull Request #3727 · google/go-github

stevehipwell

alexandear

dblinkhorn added a commit to dblinkhorn/go-github that referenced this pull request

Oct 30, 2025
…ty array

- Initialize BypassActors with empty slice instead of nil
- Ensures JSON payload includes bypass_actors:[] instead of null
- Matches fix from PR google#3727 for repository rulesets
- Adds testBody validation to verify correct JSON payload is sent

This was referenced

Oct 30, 2025