+
Skip to content

fix: Add missing require_last_push_approval field to branch protection rule event structs #3623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

manue1
Copy link
Contributor

@manue1 manue1 commented Jul 10, 2025

Adds the require_last_push_approval field in order to be returned as part of the webhook payload object for branch_protection_rule as documented here.

It's being added to both the ProtectionChanges and BranchProtectionRule to account for the created and edited action types of the webhook.

For context:

Copy link

google-cla bot commented Jul 10, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@manue1 manue1 changed the title Add missing require_last_push_approval field to branch protection rule event structs fix: Add missing require_last_push_approval field to branch protection rule event structs Jul 10, 2025
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.33%. Comparing base (b758928) to head (79357aa).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3623   +/-   ##
=======================================
  Coverage   91.33%   91.33%           
=======================================
  Files         184      184           
  Lines       16174    16174           
=======================================
  Hits        14773    14773           
  Misses       1227     1227           
  Partials      174      174           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @manue1!
LGTM.
Merging.

@gmlewis gmlewis merged commit eeac201 into google:master Jul 10, 2025
7 checks passed
@manue1 manue1 deleted the manue1/branch-protection-require-latest-push-approval branch July 10, 2025 11:40
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.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载