Commit Graph

36 Commits

Author SHA256 Message Date
162ae11cdd common: init the cache so not null 2025-11-19 15:29:52 +01:00
3ed5ecc3f0 pr: add staging/Auto on new PRs
also, cache timeline fetches
2025-11-17 11:01:45 +01:00
d2973f4792 PR: only consider open PR when creating new PRs 2025-09-21 23:21:40 +02:00
6a09bf021e Revert "common: use X-Total-Count in multi-page results"
This reverts commit 5addde0a71.
2025-09-11 09:34:13 +02:00
6a71641295 common: take care of empty result sets
In case of empty result pages, we should ignore the X-Total-Count
header.

Fixes: 5addde0a71
2025-09-03 12:21:07 +02:00
5addde0a71 common: use X-Total-Count in multi-page results 2025-09-03 01:00:33 +02:00
90ea1c9463 common: remove duplicate 2025-09-02 20:50:23 +02:00
923bcd89db common: timeline items can be null? 2025-08-26 11:36:51 +02:00
538698373a common: API can fail... 2025-08-22 15:30:09 +02:00
4894c0d90a mark manual merge instead of relying on Gitea -- delays? 2025-08-22 09:07:34 +02:00
090c291f8a prjgit manual merge check 2025-08-21 17:39:52 +02:00
9f0909621b PR: fix timeline fetches
only fetch latest reviews from a user, not all
2025-07-15 11:06:17 +02:00
1a07d4c541 Create Pull Requests to specified branches
instead of always using DefaultBranch. This means that target needs
always gets specified now.
2025-07-11 12:01:43 +02:00
0019546e30 forward-bot: initial skeleton 2025-06-17 00:46:26 +02:00
6438a8625a Replace PrjGit creation logic 2025-06-16 14:22:21 +02:00
c8d65a3ae5 PR: refactor
Move AssociatedPR fetching
2025-06-11 16:28:02 +02:00
290424c4a7 common: sort timeline in desc order 2025-06-03 23:42:02 +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
af096af507 pr: require manual merge options for repositories 2025-05-26 18:10:25 +02:00
9c3658b33e pr: remove pending requests
Remove all pending review requests when we merge
2025-05-13 18:34:56 +02:00
24fe165c46 reviews: use timeline and ignore reviews prior to last push 2025-05-12 19:44:10 +02:00
da32adb16b staging: cleanup logic
Add cleanup logic for finished requests

Merged PRs are immediatelly removed along with any QA subprojects
Unmerged closed PRs are removed after a day, default 48 hours
since closing.
2025-05-08 13:56:31 +02:00
da1df24666 wip 2025-05-06 18:06:04 +02:00
f52d72e04a staging: use status line in PRs 2025-05-05 13:52:46 +02:00
0d0fcef7ac staging: fixes 2025-05-04 20:45:33 +02:00
bd492f8d92 no branch if default 2025-04-17 18:40:20 +02:00
f0de3ad54a workflow-direct: no panic if no changes 2025-04-17 15:12:51 +02:00
0e036b5ec6 workflow-direct: move away from prjgit repo being just repo 2025-04-16 18:07:37 +02:00
51ba81f257 Merge branch 'main' into refactor 2025-04-11 14:00:00 +02:00
bb7a247f66 common: commit status api 2025-04-11 13:58:20 +02:00
d89c77e22d common: use hostname:port instead of just hostname for API calls 2025-04-08 16:48:25 +02:00
06aef50047 start refactoring PR bot 2025-04-07 19:03:02 +02:00
d3f1b36676 Use "-gitea-url" instead of "-gitea-host" or simiar
This allows to use another schema than https:// to connect to Gitea
2025-04-07 14:20:26 +02:00
c4ce974ddf group-review: fixes 2025-04-05 23:45:40 +02:00
009cc88d54 Merge remote-tracking branch 'gitea/main' 2025-04-04 13:06:28 +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