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
ff7df44d37
staging: assume changed directories are packages
...
Ignore any non-top level direcotries here. This should be fixed
to handle _manifest files
2025-09-11 14:56:27 +02:00
1a19873f77
Merge remote-tracking branch 'gitea/main'
2025-09-11 09:35:05 +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
f2089f99fc
staging: use helper function to SetCommitStatus
2025-09-09 12:55:14 +02:00
10ea3a8f8f
obs-staging-bot: Fix setting of commit status
2025-09-09 12:46:43 +02:00
9faa6ead49
Log errors on SetCommitStatus
2025-09-09 12:46:21 +02:00
29cce5741a
staging: typo fix
2025-09-09 12:46:11 +02:00
804e542c3f
Decline too large staging projects
...
In most cases anyway an error in pull request.
2025-09-09 12:41:07 +02:00
72899162b0
status: need to fetch repositories during sync
...
We need to fetch repositories so that we can have package
data. We only need to fetch one set of results per project,
not all repos.
2025-09-03 16:42:01 +02:00
168a419bbe
status: allow for package search endpoint
...
OBS has issues searching for packages in scmsynced projects.
Since we have a list of all the repositories, we can allow
for a search endpoint here.
/search?q=term1&q=term2...
results is JSON
[
project1/pkgA,
project2/pkgB
]
2025-09-03 14:35:15 +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
a4fb3e6151
PR: Don't clobber other's PrjGit description
...
If we did not create the PRjGit PR, don't touch the title
and description
Closes : #68
2025-09-02 19:47:47 +02:00
e2abbfcc63
staging: improve cleanup logging
2025-09-01 12:49:55 +02:00
f6cb35acca
spec: add obs-staging-bot.service
2025-09-01 12:29:29 +02:00
f4386c3d12
Try to use Staging Master Project as default build target if available
...
This allows us to set custom build configuration or repository sets for
pull request projects.
2025-09-01 11:52:30 +02:00
f8594af8c6
obs-status: report error on monitor page if error
...
If we have error with REDIS connection, report it as error 500
on the / default page. Otherwise, report the 404 there instead
as before.
2025-09-01 11:20:54 +02:00
b8ef69a5a7
group-review: react on comment events
...
Instead of just polling for events, we can use issue_comment events
to process PRs more quickly.
At same time increased default polling interval to 10 minutes if
we use events
Closes #67
2025-08-30 10:41:29 +02:00
c980b9f84d
group-review: improve comment made by the bot
...
Bot name should be expanded for easy copy-pasta
2025-08-29 18:19:03 +02:00
4651440457
Revert "Fixing creation or PR even when we don't want it"
...
This reverts commit e90ba95869 .
We need to assign reviews anyway...
2025-08-29 17:09:08 +02:00
7d58882ed8
Accept review (instead of removal) on no submodule change
...
Because we require approval by staging bot in the workflow bot.
2025-08-29 15:08:05 +02:00
e90ba95869
Fixing creation or PR even when we don't want it
2025-08-29 15:08:05 +02:00
1015e79026
PR: don't try to update PR if PrjGit only being updated
2025-08-29 14:36:20 +02:00
833cb8b430
PR: marshall config before logging it
2025-08-28 18:13:11 +02:00
a882ae283f
PR: workaround lfs errors
...
in case where files are not in lfs but should be, the checkout
causes files to be modified. Then the checkout of the PR.Head fails.
There should be better way of dealing with this
2025-08-28 16:30:04 +02:00
305e90b254
common: fix logging format string
2025-08-28 13:09:32 +02:00
c80683182d
group-review: handle case when not yet reviewed
2025-08-28 10:16:49 +02:00
51cd4da97b
group-review: use suggested wording
...
Closes : #50
2025-08-27 19:27:59 +02:00
cf71fe49d6
group-review: don't spam reviews if already there
...
Check if review is already in the timeline and don't spam it again
Closes : #51
2025-08-27 19:16:51 +02:00
85a9a81804
Add HuJSON helper
2025-08-27 17:04:48 +02:00