c4e184140a
pr: handle case when reviews is nil
2025-12-09 17:19:38 +01:00
3a6009a5a3
pr: review requests cannot be stale
...
Yes, gitea marks these as stale too, but we should just ignore this
flag in case of requests. Stale requests are still pending.
2025-12-05 10:15:02 +01:00
2c4d25a5eb
pr: remove maintainers if submitter is maintainer
...
If we have case where reviews are already there, for whatever reason
(eg. upgrade from older bot), remove the pending reviews if they
are not needed
2025-12-05 09:36:38 +01:00
052ab37412
common: Loading pending reviews when loading reviews
2025-12-04 19:02:21 +01:00
925f546272
pr: check all reviews, not just ones tagged reviewers
2025-12-04 18:21:32 +01:00
581131bdc8
pr: request and unrequest reviewers
...
Move the function to request and unrequest reviewers to a different
function. This will allow later simplification of the function
that determines if all reviews are complete.
Unrequesting of reviews is only possible in case of bot issued
review requests. The rest are left as-is.
2025-12-03 18:55:10 +01:00
495ed349ea
common: refactor: FetchPRSet also fetches Reviews
2025-12-03 18:55:10 +01:00
e3087e46c2
PR: skip maintainer review if not needed
...
If project or package maintainer already reviewed the PR, as
appropriate, they are no longer re-added to the PR. We also need
to remove reviewers, but only if they were previously requested
by the bot and not something else.
2025-12-03 18:55:10 +01:00
1390225614
PR: list missing PRs in the logs
2025-09-29 14:58:43 +02:00
9f0909621b
PR: fix timeline fetches
...
only fetch latest reviews from a user, not all
2025-07-15 11:06:17 +02:00
b89cdb7664
PR: fix parsing comments from timeline
2025-06-05 19:15:53 +02:00
7c229500c1
common: debug logging
2025-06-03 23:46:53 +02:00
cca3575596
PR: add "merge ok" manual merge option
2025-06-02 16:22:50 +02:00
69dcebcf74
common: use Timeline for reviews
...
Gitea doesn't keep track of Stale reviews well. We should parse
Timeline of a PR *always* and apply our own logic to this instead
2025-05-30 16:51:30 +02:00
4653904ded
pr: merge - preliminary fixes
2025-05-09 17:28:35 +02:00
5ea5f05b02
common: reviews fix
2025-04-07 09:47:07 +02:00
Jan Zerebecki
4604aaeeba
Rename bots-common to common
...
to make it match the name it is imported as
2025-04-03 22:38:28 +02:00