feat: Adds support for repository rulesets and enhances branch protections. Bumps minimum GitHub provider version to v6.11.#178
Open
spolspol wants to merge 6 commits into
Conversation
Adds the ability to define and apply repository rulesets. This change introduces a new resource to manage rulesets. Also upgrades github provider to version ">= 6.11, < 7.0"
Adds support for `restrict_pushes`, `force_push_bypassers`, and `lock_branch` to improve branch protection configuration. Deprecates classic projects API.
Adds support for checks, dismissal apps, require last push approval and bypass allowances to branch protections v3, enhancing configuration options and replacing deprecated contexts argument.
Adds the ability to allow users to update branches directly from pull requests.
e77af89 to
249ed91
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
var.rulesets) with branch, tag, and push targets.ruleset_idsoutput for referencing created rulesets.test/unit-ruleset/test fixture andTestUnitRulesetGo test.examples/with-ruleset/example.restrict_pushesblock support forbranch_protections_v4(replaces removedpush_restrictionsandblocks_creations).force_push_bypassersandlock_branchsupport forbranch_protections_v4.checksargument tobranch_protections_v3required_status_checks(replaces deprecatedcontexts).dismissal_appsandrequire_last_push_approvaltobranch_protections_v3required_pull_request_reviews.bypass_pull_request_allowancesblock tobranch_protections_v3required_pull_request_reviews.allow_update_branchsupport for repository configuration.Changed
>= 4.20, < 6.0to>= 6.11, < 7.0.blocks_creationsandpush_restrictions) for provider v6.x compatibility.github_repository_projectresource as deprecated.Breaking Changes
>= 6.11, < 7.0. This requires users to upgrade their provider configuration.blocks_creationsandpush_restrictionsarguments inbranch_protections_v4are removed. Migrates to using therestrict_pushesblock instead.Affected Issues
Closes #132, Closes #133, Closes #144, Closes #147, Closes #151, Closes #157, Closes #163