pr: reset Approve flag for all PRs before check
gofmt / Format checking (pull_request) Successful in 4s
Integration (Selective) / check (pull_request) Successful in 2s
go-generate-check / go-generate-check (pull_request) Successful in 14s
gofmt / Linter and static analysis (pull_request) Successful in 1m0s
go-test-unit / go-test-unit (pull_request) Successful in 1m2s
Integration (Selective) / integration (pull_request) Successful in 9m16s

Fixes: 36aa4d80a2
This commit is contained in:
2026-07-17 15:11:50 +02:00
parent c304d3e6bf
commit 81ec970c5d
+5 -1
View File
@@ -534,8 +534,12 @@ func (rs *PRSet) RemoveClosedPRs() {
func (rs *PRSet) IsApproved(gitea GiteaPRChecker, maintainers MaintainershipData) bool {
groups := rs.Config.ReviewGroups
prjgit, err := rs.GetPrjGitPR()
for _, pr := range rs.PRs {
pr.Approved = false
}
if err == nil && prjgit != nil {
prjgit.Approved = false
reviewers := maintainers.ListProjectMaintainers(groups)
if prjgit.Reviews == nil {
LogDebugCtx(rs.Context(), "Fetching project reviews for", prjgit.PR.Base.Repo.Owner.UserName, prjgit.PR.Base.Repo.Name, prjgit.PR.Index)