600 Commits

Author SHA256 Message Date
Jan Zerebecki
d0b2ad4966 Build rest and run tests
Build binaries that depend on mocks.
Build some binaries that where added since and add sub-package for them.
Run go test where they exist.
2025-08-29 16:37:14 +02:00
Jan Zerebecki
0f81687723 Add go generate result 2025-08-29 15:09:04 +02:00
Gitea Actions
0332d51d97 CI run result of: go mod vendor 2025-08-29 15:09:00 +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
72b979b587 PR: remove closed package PRs from a PRset
This used to happen as a side-effect of a different code path
that was removed in b96b784b38
2025-08-27 14:57:43 +02:00
bb4350519b common: fix invalid log message
Log message complained about request processing even when
it finished request processing.
2025-08-27 14:54:32 +02:00
62658e23a7 PR: quiet submodule deinit output 2025-08-27 14:49:16 +02:00
6a1f92af12 tests: comment out tests that crash 2025-08-27 11:49:26 +02:00
24ed21ce7d tests: fix panics 2025-08-26 23:51:14 +02:00
46a187a60e pr: error format fix 2025-08-26 23:50:48 +02:00
e0c7ea44ea tests: make sure to vendor all the modules 2025-08-26 22:54:54 +02:00
f013180c4b PR: assign reviewers only when not merging 2025-08-26 22:41:37 +02:00
b96b784b38 PR: remove broken code 2025-08-26 19:57:48 +02:00
6864e95404 PR: merge correct branches
Add sanity check that we merge correct branches too
2025-08-26 19:43:51 +02:00
0ba4652595 common: use older git --heads instead of --branches 2025-08-26 19:17:32 +02:00
8d0047649a PR: if we have unpushed commits, update PRset
PRset is used elsewhere and if the pending, unpushed commits
are not part of it, we have an old state
2025-08-26 18:59:38 +02:00
2f180c264e PR: check pending changes, pushed changes 2025-08-26 18:16:42 +02:00
7b87c4fd73 PR: fix parsing of project prs in timeline
Fixes: 933ca9a3db
2025-08-26 17:56:38 +02:00
7d2233dd4a PR: add NoProjectGitPR option 2025-08-26 16:19:56 +02:00
c30ae5750b PR: clone fixes 2025-08-26 15:47:58 +02:00
ea2134c6e9 PR: checkout a commit, for safety - we can't push to non-branch 2025-08-26 13:51:09 +02:00
b22f418595 PR: process with ProjectGit originating from non-local 2025-08-26 13:37:11 +02:00
c4c9a16e7f PR: fix PR parsing with ! 2025-08-26 12:50:21 +02:00
5b1e6941c2 PR: typo in command line 2025-08-26 11:39:52 +02:00
923bcd89db common: timeline items can be null? 2025-08-26 11:36:51 +02:00
e96f4d343b PR: catch panic in PR processing 2025-08-26 11:36:28 +02:00
bcb63fe1e9 Add build status to README 2025-08-25 19:58:37 +02:00
f4e78e53d3 spec: install workflow bots and remove importer
importer is one-off kidn of a program and can't really be run
by itself. It requires git-importer + database + ability to register
to git-obs-bridge which is internal only
2025-08-25 19:54:03 +02:00
082db173f3 vendor: move vendored sources in-tree
This should make it easier to see changes instead of just a blob
2025-08-25 19:48:19 +02:00
7e055c3169 Merge branch 'jzerebecki-fix-pr-link' 2025-08-25 19:12:59 +02:00
7e59e527d8 PR: fix type errors 2025-08-25 18:18:00 +02:00
518845b3d8 importer: dedup maintainer and expand groups 2025-08-25 17:40:38 +02:00
b091e0e98d common: panic if the config is unresoveable
either branch for project config must be defined in the config, OR
it can be fetched as default branch from Gitea. If neither happens,
it's best not to do any guessing here
2025-08-25 17:04:43 +02:00
cedb7c0e76 Add Container files 2025-08-25 13:53:09 +02:00
7209f9f519 update READMEs for workflow bots 2025-08-25 11:32:51 +02:00
bd5482d54e status: use toplevel window for opening links 2025-08-24 19:36:40 +02:00
bc95d50378 [group-review]: Add config options 2025-08-23 13:04:58 +02:00
fff996b497 [group-review]: submitter member of group
submitter cannot be reviewer. Added to the help message

Closes: #59
2025-08-22 17:50:30 +02:00
2b67e6d80e group-review: Add Silent option
Closes: #60
2025-08-22 17:39:29 +02:00
5a875c19a0 PR: handle issues webhooks
These issues have to be associated with a PR. Otherwise processing
is ignored. We need these to handle comments to bot
2025-08-22 16:28:43 +02:00
538698373a common: API can fail... 2025-08-22 15:30:09 +02:00
84b8ca65ce staging: adapt to updated result types 2025-08-22 15:03:02 +02:00
a02358e641 PR: proces PRs on comments too, like "merge ok" 2025-08-22 14:59:24 +02:00