prow/cmd/branchprotector/request.go
func makeRequest(policy branchprotection.Policy) github.BranchProtectionRequest {
	return github.BranchProtectionRequest{
		EnforceAdmins:              makeAdmins(policy.Admins),
		RequiredPullRequestReviews: makeReviews(policy.RequiredPullRequestReviews),
		RequiredStatusChecks:       makeChecks(policy.RequiredStatusChecks),
		Restrictions:               makeRestrictions(policy.Restrictions),
	}

}
func makeRequest(policy branchprotection.Policy) github.BranchProtectionRequest {
	return github.BranchProtectionRequest{
		EnforceAdmins:              makeAdmins(policy.Admins),
		RequiredPullRequestReviews: makeReviews(policy.RequiredPullRequestReviews),
		RequiredStatusChecks:       makeChecks(policy.RequiredStatusChecks),
		Restrictions:               makeRestrictions(policy.Restrictions),
	}

}
func makeRequest ( policy branchprotection . Policy ) github . BranchProtectionRequest { return github . BranchProtectionRequest { EnforceAdmins : makeAdmins ( policy . Admins ) , RequiredPullRequestReviews : makeReviews ( policy . RequiredPullRequestReviews ) , RequiredStatusChecks : makeChecks ( policy . RequiredStatusChecks ) , Restrictions : makeRestrictions ( policy . Restrictions ) , } }
// makeRequest renders a branch protection policy into the corresponding GitHub api request.
makeRequest renders a branch protection policy into the corresponding GitHub api request .