Skip to content

feat: preserve pull request ruleset protection parameters - #3715

Closed
Overbryd wants to merge 1 commit into
integrations:mainfrom
Overbryd:ruleset-pull-request-protection-fields
Closed

Overbryd wants to merge 1 commit into
integrations:mainfrom
Overbryd:ruleset-pull-request-protection-fields

Conversation

@Overbryd

@Overbryd Overbryd commented Nov 3, 2026 •

Copy link
Copy Markdown

Fixes #3698; extra-approval portion of #3664 only (code_quality out of scope). Prerequisite-blocked: needs #3705 and a go-github release containing google/go-github#4653; current official dependencies cannot compile it. AI-assisted implementation, disclosed per CONTRIBUTING.md.

Before the change?

Imported ruleset updates cannot preserve these review controls. Dismissal schema/mapping builds on Ben Langfeld's #3658; no SDK-bump commits duplicated.

After the change?

Both ruleset resources preserve the fields; disabled/empty dismissal restrictions normalize without drift. Tests, go vet, docs and live GET-only import plan (2 imports, no remote changes) pass with a local v93 + merged SDK-field overlay; official dependencies remain blocked. No acceptance tests or live writes run.

Pull request checklist

  • Schema migrations assessed: no version migration needed for these optional fields.
  • Tests added: true/false API encoding, import/update roundtrip, actor types, enabled/no-actor restrictions and unset drift.
  • Examples, templates and generated docs updated/reviewed.

Does this introduce a breaking change?

  • Yes
  • No

Builds on the dismissal restriction schema and mapping proposed by Ben Langfeld in PR integrations#3658. Depends on SDK upgrade PR integrations#3705 and a go-github release carrying google/go-github#4653.
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

👋 Hi, and thank you for this contribution!

This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.

You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions.


🤖 This is an automated message.

@Overbryd
Overbryd marked this pull request as ready for review November 3, 2026 11:48
@Overbryd

Copy link
Copy Markdown
Author

Could a maintainer advise on the path forward for this and SDK upgrade #3705? The extra-approval field also needs a go-github release containing google/go-github#4653. Local prerequisite-overlay tests/vet pass; official dependencies remain blocked. Happy to split the dismissal-restriction support if that would help review.

@robert-crandall

Copy link
Copy Markdown
Contributor

Thanks for putting this PR together and taking the time to contribute!

We're temporarily moving to an issue-first model (see CONTRIBUTING.md) where only collaborators can open PRs while we work through the backlog. Because of that, I'm going to close this PR for now.

I've linked it on #3698 so we don't lose your work or context when we pick that issue up. Feel free to add a 👍 or any extra notes there to help us prioritize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Support dismissal_restriction on the ruleset pull_request rule

2 participants