SHA256
1
0

701 Commits

Author SHA256 Message Date
Michal Suchanek
f878e4895e Make it possible to specify BR format in query string
instead of

curl -H 'accept: application/obs+xml' https://br.opensuse.org/status/Java:packages/jameica
curl -H 'accept: application/json' https://br.opensuse.org/status/Java:packages/jameica

this can be used

curl https://br.opensuse.org/status/Java:packages/jameica?format=xml
curl https://br.opensuse.org/status/Java:packages/jameica?format=json

which provides much simpler and easier to understand interface.

Fixes: #94
2025-11-06 16:56:09 +01:00
20e1109602 spec: packaging fixes
* Update Version to 1, since we now have devel project and updates
should have version bump instead of downgrade
* other fixes
2025-11-05 16:38:15 +01:00
c25d3be44e direct: add systemd unit file 2025-11-05 13:24:54 +01:00
8db558891a direct: remove config.Branch clobbering
use our own copy of branch instead of writing it in the config.
This should fix handling of default branches where the default
branch differs between repositories.
2025-11-04 18:00:21 +01:00
0e06ba5993 common: classifying rm branches on name
Branches with suffixes

  -rm
  -removed
  -deleted

are now classified as removed. This is important in case project
config refers to default branch names which must exist so we need
to be able to classify such branches to either use them or ignore
them
2025-11-04 18:00:21 +01:00
736769d630 direct: add a repo with branch but no submodule 2025-11-04 18:00:21 +01:00
93c970d0dd direct: move logging to common.Log* function 2025-11-04 18:00:21 +01:00
5544a65947 obs-staging-bot: Expand possible branch of QA repos
That way a source merge of any product is not triggering rebuilds in
pull request QA sub projects. We may need a config option here to
enable/disable this.
2025-11-03 17:54:57 +01:00
918723d57b Merge commit '55846562c1d9dcb395e545f7c8e0bcb74c47b85693f4e955ef488530781b9bf2'
PR!88
2025-11-03 17:49:45 +01:00
a418b48809 pr: process PR on comments, not issue changes 2025-10-31 13:07:18 +01:00
55846562c1 Add simple readme for gitea_status_proxy 2025-10-31 10:33:58 +01:00
95c7770cad Change log level for auth errors 2025-10-31 10:33:58 +01:00
1b900e3202 Properly proxy json input directly to gitea 2025-10-31 10:33:51 +01:00
d083acfd1c Be more verbose about authentication errors 2025-10-30 13:09:17 +01:00
244160e20e Update authorization headers
For gitea API AuthorizationHeaderToken tokens must be prepended with "token" followed by a space, also fix content type
2025-10-30 13:09:17 +01:00
ed2847a2c6 README: devel-project follows main
And use home:adamm:autogits/autogits for building staging branch, if any
2025-10-28 12:54:22 +01:00
1457caa64b Merge branch 'main' of src.opensuse.org:git-workflow/autogits 2025-10-28 12:51:12 +01:00
b9a38c1724 Update README.md 2025-10-28 12:09:10 +01:00
74edad5d3e devel: fix pool setting script 2025-10-28 11:32:51 +01:00
Jan Zerebecki
e5cad365ee Run go tests from rpm check
Skip some failing tests to be able to run the rest.
Add missing config to make git commit succeed inside rpmbuild.
2025-10-27 14:42:21 +01:00
Jan Zerebecki
53851ba10f Add ci jobs for go vendor 2025-10-24 11:45:41 +02:00
Jan Zerebecki
056e5208c8 Add ci jobs for go generate
either to check it produces no diff, or to manually trigger pushing any
diff as a commmit to the current branch.
2025-10-24 11:45:38 +02:00
Jan Zerebecki
af142fdb15 Prefix packages and build rest
Add some dependencies from Containerfiles, so containers can be built
from the rpm and implicitly pull those in.
Build some binaries that where added since and add sub-package for them.
2025-10-24 11:22:52 +02:00
Jan Zerebecki
5ce92beb52 Add go generate result 2025-10-24 10:39:34 +02:00
Gitea Actions
ae379ec408 CI run result of: go mod vendor 2025-10-24 10:39:31 +02:00
458837b007 status: complete the fix for insufficient Clone()
Ammends: 58d1f2de91
2025-10-15 18:46:46 +02:00
a3feab6f7e status: use obs+xml mime header instead of xml
browsers request application/xml on their Accept: headers by default,
which causes status to return XML to them instead of falling back
to SVG
2025-10-15 18:42:52 +02:00
fa647ab2d8 status: do not marshall empty XMLName in json 2025-10-15 18:24:52 +02:00
19902813b5 status: fix xml output 2025-10-15 18:09:21 +02:00
23a7f310c5 status: Add application/xml support in output 2025-10-15 16:59:52 +02:00
58d1f2de91 status: make a copy before overwriting 2025-10-14 19:37:36 +02:00
d623844411 pr: do not fail checkout 2025-10-13 18:37:42 +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