Skip to content
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

Add RequireLastPushApproval field to UpdateBranchProtection #2629

Merged

Conversation

liaodaniel
Copy link
Contributor

Fixes #2628

Signed-off-by: Daniel Liao 10663736+liaodaniel@users.noreply.github.com

Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
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, @liaodaniel!
This field is optional, so we need to treat it a bit differently.

github/repos.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 16, 2023

Codecov Report

Merging #2629 (66ca34f) into master (ea25803) will not change coverage.
The diff coverage is n/a.

❗ Current head 66ca34f differs from pull request most recent head b1cf227. Consider uploading reports for the commit b1cf227 to get more accurate results

@@           Coverage Diff           @@
##           master    #2629   +/-   ##
=======================================
  Coverage   98.03%   98.03%           
=======================================
  Files         130      130           
  Lines       11144    11144           
=======================================
  Hits        10925    10925           
  Misses        150      150           
  Partials       69       69           
Impacted Files Coverage Δ
github/repos.go 98.67% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Signed-off-by: Daniel Liao <10663736+liaodaniel@users.noreply.github.com>
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, @liaodaniel !
LGTM.
Merging.

@gmlewis gmlewis merged commit 9708994 into google:master Jan 17, 2023
@liaodaniel liaodaniel deleted the add-require-last-push-approval-field branch May 31, 2023 04:10
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.

PullRequestReviewsEnforcementRequest struct should also include the RequireLastPushApproval field
2 participants