You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#6946 Run hooks on merge/edit and cope with protected branches (#6961)
* Fix#6946 by checking PullRequest ID on pushing
* Ensure we have the owner name, the pr attributes and the the issue
* Fix TestSearchRepo by waiting till indexing is done
* Update integrations/repo_search_test.go
* changes as per @mrsdizzie
* missing comma
* Spelling mistake
* Fix full pushing environment
"err": fmt.Sprintf("Unable to get PullRequest %d Error: %v", prID, err),
96
+
})
97
+
return
98
+
}
99
+
if!protectBranch.HasEnoughApprovals(pr) {
100
+
log.Warn("Forbidden: User %d cannot push to protected branch: %s in %-v and pr #%d does not have enough approvals", userID, branchName, repo, pr.Index)
0 commit comments