Commit Graph

607 Commits

Author SHA256 Message Date
b6bb7f9968 WIP: submodule conflict resolution 2025-09-01 16:39:13 +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
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