Skip to content

Organizations/Enterprise UpdateRepositoryRulesetClearBypassActor sends null instead of empty array #3795

@dblinkhorn

Description

@dblinkhorn

Repository rulesets had a bug where UpdateRulesetClearBypassActor failed to clear bypass actors because it sent {"bypass_actors":null} instead of {"bypass_actors":[]}. This was fixed in PR #3727 (issue #3726) by explicitly initializing BypassActors with an empty slice.

The same bug exists in organization and enterprise rulesets:

  • Organizations.UpdateRepositoryRulesetClearBypassActor
  • Enterprise.UpdateRepositoryRulesetClearBypassActor

Both functions construct rulesetClearBypassActors{} with BypassActors uninitialized (nil).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions