aa50481c00
PR: add test for unauthorized merge reviews
2025-06-03 10:48:17 +02:00
bc714ee22d
PR: fix build
2025-06-03 10:40:49 +02:00
b8cc0357a7
PR: limit manual merge to Projects
...
Add "ManualMergeProject" to require "merge ok" sign-offs on
project level only
2025-06-03 00:07:34 +02:00
aed0ac3ee9
PR: allow maintainers to approve merges by default
2025-06-02 23:54:05 +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
7da9daddd5
direct: fix error formatting element
2025-05-27 12:33:51 +02:00
cd0c3bc759
common: fix tests
2025-05-27 12:11:21 +02:00
af096af507
pr: require manual merge options for repositories
2025-05-26 18:10:25 +02:00
d150c66427
common: update gitea APIs
2025-05-26 16:55:15 +02:00
3bef967023
wip
2025-05-16 17:57:02 +02:00
9c3658b33e
pr: remove pending requests
...
Remove all pending review requests when we merge
2025-05-13 18:34:56 +02:00
6968cbc942
group-review: use URL and not hardcode amqps for rabbit
2025-05-13 16:43:16 +02:00
2cb7a065a9
common: extract timeline fetcher to common code
2025-05-13 15:32:38 +02:00
35058623a7
group-review: logic fixes
...
* Only look at reviews after last update or review request
* Re-request reviews if they are needed
* Use timeline to filter reviews
* Ignore reviews not associated with the group name
Issue: adamm/autogits#28
2025-05-13 14:53:10 +02:00
24fe165c46
reviews: use timeline and ignore reviews prior to last push
2025-05-12 19:44:10 +02:00
1498438fee
pr: fix fetching for merging
2025-05-10 16:48:06 +02:00
4653904ded
pr: merge - preliminary fixes
2025-05-09 17:28:35 +02:00
bd87bf8ce3
staging: reviewer can be nil
...
If a user is requested reviewer, but is then deleted in Gitea,
it is still there but as "nil" user that doesn't resolve.
2025-05-09 16:55:16 +02:00
364c3f4ab7
staging: fix logging and cache stale, cleaned up repos
2025-05-08 15:55:27 +02:00
fd8b7f1bee
staging: add cleaned up notification cache
2025-05-08 14:49:46 +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
1b5a0ad0c8
common: default cleanup delay is 48 for unmerged PRs
2025-05-08 13:56:13 +02:00
e78fdf4a09
common: set cookies when availalbe, not just 200 res code
2025-05-08 13:55:31 +02:00
0564a50fb5
remove debug code in OBS client
2025-05-08 13:24:20 +02:00
4f7db36123
handle build results different when request with lastbuild=1
...
In that case we need to
* ignore repo state as it is the current one. There is no last state
* handle "unkown" state as finished as the package was never attempted,
but we don't know the reason (eg. broken source or unresolvable)
2025-05-08 10:49:09 +02:00
41d536ea1b
common: fix parsing commit messages
2025-05-08 10:42:33 +02:00
91d915cc28
Drop release targets in pull request projects
2025-05-08 10:42:03 +02:00
c7a300119e
Fix QA project setup handling
2025-05-08 10:41:30 +02:00
c5c3e1c115
Implement detection for local repositories
...
Repositories which build against another repo in the same project need
to do so also in the forked project. This is eg for consuming rpms
from one repo in an image build from same project.
2025-05-08 10:28:38 +02:00
c93788d0ee
pr: fixes
2025-05-07 16:10:16 +02:00
1e46f8d0ab
common: fix tests
2025-05-07 13:41:59 +02:00
9963ae90ef
common: fix tests
2025-05-07 12:45:26 +02:00
a9225bbd76
Merge branch 'refactor' into wip
2025-05-07 12:38:19 +02:00
801fff6e22
common: fix parsing commit messages
2025-05-07 12:31:11 +02:00
b4b0d075be
staging: only mark as read when processing is done
2025-05-07 01:08:32 +02:00
16c2eb7090
staging fixes
2025-05-07 00:25:44 +02:00
3264ad1589
staging: status line requires write repo access
2025-05-07 00:05:57 +02:00
cb64635aea
pr: use correct prjgit repo name
2025-05-06 23:59:51 +02:00
aeb4c20744
pr: reset submodules if they not agreed
2025-05-06 23:15:27 +02:00
da1df24666
wip
2025-05-06 18:06:04 +02:00
6b3c613f14
wip
2025-05-05 18:57:05 +02:00
eb997e1ae9
common: fix dynamic listening for events
2025-05-05 15:33:20 +02:00
f52d72e04a
staging: use status line in PRs
2025-05-05 13:52:46 +02:00
23e2566843
Fix git path compare of meta to pull request
...
.git is optional, but doesn't matter, so trimming it away
2025-05-05 10:54:31 +02:00
0d0fcef7ac
staging: fixes
2025-05-04 20:45:33 +02:00
62a597718b
fix parsing test
2025-05-03 14:34:33 +02:00
327cb4ceaf
fixes if git cat-file
has error
2025-05-02 22:46:31 +02:00
aac475ad16
wip
2025-05-02 16:57:13 +02:00
046a60a6ed
move staging config to its own config file
2025-05-02 11:18:23 +02:00