Compare commits

...

10 Commits

Author SHA1 Message Date
0f2be6251e yo 2026-03-14 12:06:18 +01:00
5bf7754865 Revert "maybe change config"
This reverts commit e7c84aa4ee.
2026-03-14 11:55:22 +01:00
e7c84aa4ee maybe change config 2026-03-14 11:44:01 +01:00
69043687cf Fuck me dude this can't be that difficult... 2026-03-13 18:34:52 +01:00
872ab0d944 test 1323 2026-03-13 18:19:55 +01:00
79b6b56246 2 2026-03-13 18:14:19 +01:00
0a8e7bf271 FASTER 2026-03-13 18:12:53 +01:00
caa7dbadb3 Try this one maybe 2026-03-13 17:42:21 +01:00
8c797e4269 Actually fix status this time 2026-03-13 17:20:27 +01:00
e73516fbe7 Document the gitea-translator module 2026-03-13 16:29:49 +01:00
3 changed files with 26 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ let
enabled = 1;
hidden = false;
description = "PR ${num}: ${info.title}";
checkinterval = 300;
checkinterval = 60;
schedulingshares = 20;
enableemail = false;
emailoverride = "";
@@ -33,14 +33,14 @@ let
};
gitea_status_repo = {
type = "string";
value = "${info.head.ref}";
value = "${info.head.sha}";
emailresponsible = false;
};
};
}) prs;
mkFlakeJobset = branch: {
description = "Build ${branch} branch of the Malobeo Infrastructure repo";
checkinterval = 300;
checkinterval = 60;
enabled = "1";
schedulingshares = 100;
enableemail = false;
@@ -48,7 +48,7 @@ let
keepnr = 3;
hidden = false;
type = 1;
flake = "https://git.dynamicdiscord.de/malobeo/infrastructure/archive/${branch}.tar.gz";
flake = "https://git.dynamicdiscord.de/ahtlon/infrastructure/archive/${branch}.tar.gz";
};
desc = prJobsets // {

View File

@@ -12,6 +12,7 @@
- [musik](./projekte/musik.md)
- [TODO](./todo.md)
- [Modules]()
- [Gitea-translator](./module/gitea-translator.md)
- [Initrd-ssh](./module/initssh.md)
- [Disks](./module/disks.md)
- [How-to]()

View File

@@ -0,0 +1,21 @@
# Gitea-tanslator
The module can be used by importing `inputs.self.nixosModules.malobeo.gitea-translator`
This module starts a python server that fetches the gitea pull request api and translates it to a file that hydra understands.
To use, just set the parameters of the gitea server, then send a GET request to either `http://${host}:${port}/` or `http://${host}:${port}/gitea-pulls-sorted.json`
## Module config
##### enable (default = false) - enables the module
##### baseurl (default = "git.dynamicdiscord.de") - Base URL of the Gitea instance
##### owner (default = "malobeo") - Repository owner
##### repo (default = "infrastructure") - Repository name
##### host (default = "127.0.0.1") - Address the server binds to
##### port (default = 27364) - Port the server listens on
## Hydra config
If you change the default port or host, the file `.hydra/spec.json` has to be modified accordingly.
With the module running on the hydra host, create a new hydra project, then:
- Set `Declarative spec file` to `.hydra/spec.json`
- Change declaritive input type to `Git checkout`
- Set your git repo location in the field below that