Only the last commit on this is mine, to resolve this problem on a PR created by matthewcostatide
Before the change?
The github_branch_protection_v3 resource doesn't support setting the require_last_push_approval flag, and its presence is omitted from the documentation.
After the change?
This PR adds support for the require_last_push_approval flag in the required_pull_request_reviews block of the github_branch_protection_v3 resource type, consistent with the github_branch_protection resource.
Pull request checklist
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
Resolves #1723 and the bug left in PR #2017
Only the last commit on this is mine, to resolve this problem on a PR created by matthewcostatide
Before the change?
The github_branch_protection_v3 resource doesn't support setting the require_last_push_approval flag, and its presence is omitted from the documentation.
After the change?
This PR adds support for the require_last_push_approval flag in the required_pull_request_reviews block of the github_branch_protection_v3 resource type, consistent with the github_branch_protection resource.
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!