GetPullRequest returns the PullRequest slice if it's non-nil, nil otherwise.
()
| 3496 | |
| 3497 | // GetPullRequest returns the PullRequest slice if it's non-nil, nil otherwise. |
| 3498 | func (b *BranchRules) GetPullRequest() []*PullRequestBranchRule { |
| 3499 | if b == nil || b.PullRequest == nil { |
| 3500 | return nil |
| 3501 | } |
| 3502 | return b.PullRequest |
| 3503 | } |
| 3504 | |
| 3505 | // GetRequiredDeployments returns the RequiredDeployments slice if it's non-nil, nil otherwise. |
| 3506 | func (b *BranchRules) GetRequiredDeployments() []*RequiredDeploymentsBranchRule { |
no outgoing calls