Commit Graph

670 Commits

Author SHA256 Message Date
51b3d5942d wip 2025-10-13 09:02:06 +02:00
04825b552e pr: use force-merge instead of force-push
The permission is to accept a change without required reviews, not
to actually force-push

Fixes 7bad8eb5a9
2025-10-12 10:22:49 +02:00
ca7966f3e0 pr: sanity check
make sure that the checked out PR matches what Gitea is sending
us, otherwise pause for a few seconds and retry.
2025-10-11 18:10:15 +02:00
0c47ca4d32 pr: updating PR needs to update the SHA
If we are updating a Project Git PR, we need to save the updated
hash or we may be lookign at pre-update PR for various operations,
including merging.

This mostly only affects project gits in devel projects where
the project git could be updated by direct workflow bot, but then
the project is incorrectly resulting in no package update.
2025-10-11 17:25:48 +02:00
7bad8eb5a9 pr: Add config definitions for permission set 2025-10-09 18:43:56 +02:00
c2c60b77e5 use autogits package prefix 2025-10-08 13:03:06 +02:00
76b5a5dc0d import: factory hash setting utility 2025-10-07 22:55:58 +02:00
58da491049 common: handle translation to SSH if already SSH 2025-10-07 17:26:27 +02:00
626bead304 status: improve request logging 2025-10-06 14:07:35 +02:00
30bac996f4 status: redundant entry in service file 2025-10-06 14:03:38 +02:00
9adc718b6f spec: hujson moved to utils subpackage 2025-10-06 13:52:39 +02:00
070f45bc25 status: add no lock function
Locking is not re-entrant, so these are useful if we need
to find things while we already lock the strctures
2025-10-06 13:49:19 +02:00
d061f29699 status: use env as parameters to service
Instead of having to rewrite the service file with parameters,
leverage Env file to pass default parameters values.
2025-10-06 13:49:12 +02:00
f6fd96881d staging: improve docs 2025-10-02 17:40:00 +02:00
2be785676a reparent: add readme 2025-10-02 17:05:34 +02:00
1b9ee2d46a PR: ref requries PR fetch, and not in timeline 2025-10-02 15:13:43 +02:00
b7bbafacf8 PR: limit search to bot account for ProjectGit PRs 2025-10-02 13:45:31 +02:00
240896f101 status: fix delete function logic 2025-10-01 19:35:43 +02:00
a7b326fceb status: limit results to specific packages 2025-10-01 19:28:47 +02:00
76ed03f86f status: add json output support
if Accept: application/json is present, return JSON output
of build results instead of SVG
2025-10-01 18:58:08 +02:00
1af2f53755 PR: Fix case where PR repo != target repo
Was using a check that the label has the repo name in it, but
this is not always reliable. So, check repo.ID if it's the same.
2025-10-01 15:33:39 +02:00
0de9071f92 group-review: we need to clone before modifying a slice 2025-09-30 17:27:36 +02:00
855faea659 imported devel:openSUSE:Factory 2025-09-29 15:10:25 +02:00
dbd581ffef import: packages are not just in factory
Some packages share names of openSUSE:Factory packages but actually
have nothing in common with them. So before importing the Factory
package, check if the package is actually a devel project for Factory
and only proceed if it is. Otherwise, assume that the devel
project package is independent.
2025-09-29 15:08:30 +02:00
1390225614 PR: list missing PRs in the logs 2025-09-29 14:58:43 +02:00
a03491f75c Keep maintainers from staging template project
They need to keep access as they might need to be able to modify the
stage project. They could grant access anyway, by adding themselfs
as they own the upper project. No reason to force them the
extra trip or to hide build results first to them
2025-09-24 10:39:07 +02:00
2092fc4f42 Fix handling of all project flags
We skipped access and sourceaccess flags before
2025-09-24 09:33:29 +02:00
d2973f4792 PR: only consider open PR when creating new PRs 2025-09-21 23:21:40 +02:00
58022c6edc update transition project list 2025-09-21 20:21:15 +02:00
994e6b3ca2 status: fix typo regression 2025-09-18 19:18:03 +02:00
6414336ee6 status: add basic project level build results 2025-09-18 19:05:35 +02:00
1104581eb6 status: superflous Sprintf 2025-09-18 16:50:59 +02:00
6ad110e5d3 status: escape strings 2025-09-18 16:30:34 +02:00
e39ce302b8 status: fix README 2025-09-18 13:07:08 +02:00
3f216dc275 docs: improve README 2025-09-16 22:30:18 +02:00
8af7e58534 common: handle group data in PR reviews 2025-09-16 18:13:35 +02:00
043673d9ac common: handle ReviewGroup in maintainership data
ReviewGroups can be added as maintainers and can be optionally
expanded. This is handy when a ReviewGroup is a project maintainer
2025-09-16 17:40:18 +02:00
73737be16a rabbitmq: add support for forwarding status events to Rabbit 2025-09-16 13:23:43 +02:00
1d3ed81ac5 staging: use https cloning always
We can just pass the token, so SSH option for cloning is obsolete
2025-09-16 10:11:28 +02:00
49c4784e70 staging: handle case of no staging config 2025-09-15 17:58:21 +02:00
be15c86973 staging: use correct gitea token 2025-09-15 17:44:52 +02:00
72857db561 staging: add gitea token as user for cloning
For private repos, we need to identify ourselves to Gitea
2025-09-15 17:28:38 +02:00
faf53aaae2 move staging-bot env file to /etc/default 2025-09-15 14:00:56 +02:00
9e058101f0 Merge commit '4ae45d9913dcd473fc931c27dcc5dee93c70723121bf6f77c256c7dd196ea768' of src.opensuse.org:adamm/autogits 2025-09-15 13:54:46 +02:00
Elisei Roca
4ae45d9913 Look for configuration file in /etc/default
Files in /etc/sysconfig/ should have all the sysconfig headers an so on.
2025-09-15 13:24:18 +02:00
56cf8293ed staging: clone via target repo only 2025-09-15 12:30:08 +02:00
fd5b3598bf Don't crash when new packages got added
The build result request of the base project is failing in this
situation, since the requested package does not exist.

Therefore we need to have seperate lists for proper handling.
2025-09-13 15:47:50 +02:00
9dd5a57b81 staging: fix no config case 2025-09-11 17:22:02 +02:00
1cd385e227 common: handle case of non-existing config file 2025-09-11 16:56:03 +02:00
3c20eb567b staging: allow wider character set in pr regex 2025-09-11 16:09:42 +02:00