Files
autogits/common
Andrii Nikitin a335d04031
Some checks failed
go-generate-check / go-generate-check (pull_request) Successful in 8s
Integration tests / t (pull_request) Has been cancelled
pr: enforce all maintainer approvals when ReviewRequired is true
- Update MaintainershipMap.IsApproved to require approvals from all listed
  maintainers (excluding the submitter) when ReviewRequired is enabled.
- Split ReviewInterface logic to differentiate between approvals and
  rejections by adding IsRejectedBy and restricting IsReviewedBy to
  the APPROVED state.
- Fix premature removal of maintainer review requests in
  FindMissingAndExtraReviewers; ensure requests remain active if
  ReviewRequired is true and approvals are still missing.
- Ensure any maintainer rejection correctly triggers the cleanup of
  other redundant review requests.

Analysis Summary
The failures in test_006 and test_007 were caused by two primary logic bugs:
1. Conflated Review States: IsReviewedBy treated both "Approved" and "Request Changes" as the same state. This meant a rejection didn't properly trigger the "cleanup" logic, and an approval was indistinguishable from a rejection in several checks.
2. Greedy Reviewer Removal: The bot assumed that any maintainer approval meant all other maintainer requests could be removed. This contradicted the ReviewRequired flag, which (as seen in test_007) is intended to mandate multiple/all maintainer approvals before the PR is considered ready.
2026-03-03 15:52:25 +01:00
..
2025-05-26 16:55:15 +02:00
2026-02-25 14:48:56 +01:00
2025-05-26 16:55:15 +02:00
2026-02-25 12:48:47 +01:00
2025-04-03 22:38:28 +02:00
2026-02-25 12:48:48 +01:00
2025-04-03 22:38:28 +02:00
2026-02-25 12:50:21 +01:00
2025-05-26 16:55:15 +02:00
2025-06-26 14:24:21 +02:00
2025-07-26 13:54:51 +02:00
2025-08-28 13:09:32 +02:00
2025-04-03 22:38:28 +02:00
2025-04-03 22:38:28 +02:00
2025-04-03 22:38:28 +02:00
2025-04-03 22:38:28 +02:00
2025-04-03 22:38:28 +02:00
2025-04-03 22:38:28 +02:00
2025-07-26 13:54:51 +02:00
2025-04-03 22:38:28 +02:00
2025-10-27 14:42:21 +01:00

package common

const ReadmeBoilerplate = `
README
======

This empty project was created by AutoDevel bot.
AutoDevel creates projects that can be built
in Open Build Service.

`