We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 734aa96 commit d68a7f6Copy full SHA for d68a7f6
models/branches.go
@@ -101,7 +101,7 @@ func (protectBranch *ProtectedBranch) HasEnoughApprovals(pr *PullRequest) bool {
101
102
// GetGrantedApprovalsCount returns the number of granted approvals for pr. A granted approval must be authored by a user in an approval whitelist.
103
func (protectBranch *ProtectedBranch) GetGrantedApprovalsCount(pr *PullRequest) int64 {
104
- reviews, err := GetReviewersByPullID(pr.Issue.ID)
+ reviews, err := GetReviewersByPullID(pr.IssueID)
105
if err != nil {
106
log.Error("GetReviewersByPullID: %v", err)
107
return 0
0 commit comments