28 Commits
Author SHA1 Message Date
Vasya Aksyonov b48c264ce9 feat: Add RequireExtraApprovalForUnattributedChanges to PullRequestRuleParameters (#4653) 2026-10-22 10:34:02 -04:00
Ajay Kemparaj f9fec07de4 feat: Require Go 1.26 and use new(expr) for pointer literals (#4481) 2026-08-28 12:18:49 -04:00
Oleksandr Redko 531d1cfb59 test: Fix test names and error messages (#4284) 2026-06-05 11:02:34 -04:00
Oleksandr Redko e4ea9e72c1 test: Use testJSONBody helper for request body assertions (#4283) 2026-06-05 09:27:14 -04:00
Glenn Lewis 4a6d2a98ed refactor!: Change GetAllRepositoryRulesets to ListAllRepositoryRulesets (#4227)
BREAKING CHANGE: `OrganizationsService.GetAllRepositoryRulesets` is now `OrganizationsService.ListAllRepositoryRulesets`.
2026-05-15 11:29:11 -04:00
Dhananjay Mishra 0a16e22eba refactor: Use testJSONBody helper for request body assertions in tests (#4183) 2026-05-01 08:13:24 -04:00
Shivam Kumar 34bb84825d feat!: Use omitzero for BypassActors to support handling empty arrays (#3891)
BREAKING CHANGE: `UpdateRepositoryRulesetClearBypassActor`, `UpdateRepositoryRulesetClearBypassActor`, `UpdateRulesetClearBypassActor`, and `UpdateRulesetNoBypassActor` have been removed as they are no longer needed.
2025-12-23 08:51:11 -05:00
Doug Blinkhorn e7abb9f86a fix: Org/Enterprise UpdateRepositoryRulesetClearBypassActor sends empty array (#3796) 2025-11-03 07:05:31 -05:00
Oleksandr Redko 233fe03e17 test: Use t.Context() instead of context.Background() (#3750) 2025-10-03 08:09:47 -04:00
Clemens W 929058ec4d Add exempt as bypass mode to ruleset bypass actors (#3719) 2025-09-22 18:20:29 -04:00
Oleksandr Redko 9493278195 refactor: fix revive.unused-parameter lint issues (#3603) 2025-06-25 11:44:09 -04:00
ktruedat bdd7396e2d feat!: Add support for pagination options in rules API methods (#3562)
BREAKING CHANGE: `GetRulesForBranch`, `GetAllRulesets`, and `GetAllRepositoryRulesets` now accept `opts`.
2025-04-28 12:09:11 -04:00
Stan 04274a9870 fix!: Differentiate merge method of pull request and merge queue (#3559)
BREAKING CHANGE: `MergeMethod*` consts have been split into: `PullRequestMergeMethod*` and `MergeQueueMergeMethod*`.
2025-04-23 12:51:50 -04:00
Steve Hipwell 27bd17565a fix!: Refactor the repository ruleset code (#3430)
BREAKING CHANGES: The following types have been renamed:
- `Ruleset` -> `RepositoryRuleset`
- `RulesetLink` -> `RepositoryRulesetLink`
- `RulesetLinks` -> `RepositoryRulesetLinks`
- `RulesetRefConditionParameters` -> `RepositoryRulesetRefConditionParameters`
- `RulesetRepositoryNamesConditionParameters` -> `RepositoryRulesetRepositoryNamesConditionParameters`
- `RulesetRepositoryIDsConditionParameters` -> `RepositoryRulesetRepositoryIDsConditionParameters`
- `RulesetRepositoryPropertyTargetParameters` -> `Repository`
- `RulesetRepositoryPropertyConditionParameters` -> `RepositoryRulesetRepositoryPropertyConditionParameters`
- `RulesetOrganizationNamesConditionParameters` -> `RepositoryRulesetOrganizationNamesConditionParameters`
- `RulesetOrganizationIDsConditionParameters` -> `RepositoryRulesetOrganizationIDsConditionParameters`
- `RulesetConditions` -> `RepositoryRulesetConditions`
- `RepositoryRulesetEditedChanges` -> `RepositoryRulesetChanges`
- `RepositoryRulesetEditedSource` -> `RepositoryRulesetChangeSource`
- `RepositoryRulesetEditedSources` -> `RepositoryRulesetChangeSources`
- `RepositoryRulesetEditedConditions` -> `RepositoryRulesetUpdatedConditions`
- `RepositoryRulesetUpdatedConditionsEdited` -> `RepositoryRulesetUpdatedCondition`
- `RepositoryRulesetEditedRules` -> `RepositoryRulesetChangedRules`
- `RepositoryRulesetUpdatedRules` -> `RepositoryRulesetUpdatedRules`
- `RepositoryRulesetEditedRuleChanges` -> `RepositoryRulesetChangedRule`
2025-01-21 12:37:47 -05:00
Steve Hipwell a61e9cfebc feat!: Add support for enterprise rulesets (#3417)
BREAKING CHANGE: `Create*Ruleset` and `Update*Ruleset` now pass `ruleset` parameter by-value instead of by-reference.

Fixes: #3416.
2025-01-09 09:58:32 -05:00
Oleksandr Redko f66ed85955 feat: Deprecate and replace Bool,Int,Int64,String with Ptr using generics (#3355) 2024-12-10 21:36:09 -05:00
Clemens W 9f20524769 feat!: Fix source property on Repo Custom Properties (#3333)
BREAKING CHANGE: Change `RulesetRepositoryPropertyTargetParameters.Source` from `string` to `*string`.
2024-10-27 08:25:41 -04:00
ihor-hrytskiv 792bd15b87 feat!: Rename code scanning params from plural to singular (#3331)
BREAKING CHANGE: Rename `RuleRequiredCodeScanningTools` to `RuleRequiredCodeScanningTool`.
2024-10-22 08:25:57 -04:00
ihor-hrytskiv 8c273e1245 feat: Add support for code_scanning (#3256) 2024-10-17 07:43:08 -04:00
Glenn Lewis dc884c26ca Add t.Parallel to unit tests (#3297) 2024-10-05 07:29:05 -04:00
Glenn Lewis e56d378b96 refactor: Do not call teardown manually in tests (#3296) 2024-10-01 11:52:30 -04:00
Ze Peng 00caddcf95 feat!: Add merge queue parameters to repository ruleset (#3253)
Fixes: #3225.

BREAKING CHANGE: `NewMergeQueueRule` now takes one parameter: `*MergeQueueRuleParameters`.
2024-09-03 14:13:46 -04:00
Rez Moss c96ef954c3 Add Source field to RulesetRepositoryPropertyTargetParameters (#3250)
Fixes: #3247.
2024-08-26 14:33:00 -04:00
Clemens W 42ae4fe291 Add support in rulesets for including or excluding repos based on properties (#3194) 2024-06-26 09:57:36 -04:00
Matthew William Reidy b02f283714 Add support for merge queue ruleset JSON unmarshaling (#3131)
Fixes: #3098.
2024-04-18 21:25:10 -04:00
Osama Faqhruldin 6c1dedd966 Fix repo rules bypass settings (#2831) 2023-07-18 08:01:04 -04:00
Yurii Soldak bedd4e33eb Support repository_id in org ruleset conditions (#2825) 2023-07-15 08:06:08 -04:00
Daniel Liao 6a57598c53 Implement rulesets (#2795)
Fixes: #2789.
2023-06-17 08:36:24 -04:00