229d47f7c7
docs(server/config): add docs to types
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
2024-04-13 14:09:57 +01:00
3bbe9abbd9
test: Create stub mock forge
...
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/cron/push-next Pipeline was successful
ci/woodpecker/cron/tag-created Pipeline was successful
ci/woodpecker/cron/cron-docker-builder Pipeline was successful
Still need to figure out what tests this will need to support, and how
to configure it's behaviour. I've not ruled out creating a forge object
that is passed in rather than the functions we have now.
Closes kemitix/git-next#37
2024-04-12 22:43:19 +01:00
1ffa8366e0
feat: isolate ForgeJo behind default feature 'forgejo'
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
2024-04-12 20:53:55 +01:00
5fcf16ea75
feat: Abstract Git command execution into injectable enum
...
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Closes kemitix/git-next#36
2024-04-12 19:39:24 +01:00
cedaf16acf
feat: wrap API Token in a secrect::Secret and avoid logging
...
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline failed
Closes kemitix/git-next#30
2024-04-12 15:27:03 +01:00
bdea942bcb
feat(server): create stub for validating branch positions
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/build Pipeline failed
2024-04-09 15:31:59 +01:00
ca37045e3a
feat(server/forgejo): verify branches exist in repo
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/build Pipeline failed
2024-04-09 14:52:12 +01:00
b093c002d4
feat(server/forgejo): load repo config
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
2024-04-09 11:09:07 +01:00
7e08640743
refactor(server): reduce complexity starting server
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
2024-04-09 07:41:41 +01:00
a1484939ab
config(server): add token field to Forge
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
2024-04-08 12:09:29 +01:00
aaaa975911
refactor(config): compare whole server config in one go
2024-04-08 12:09:29 +01:00
be01d106a4
feat(config): use accesors for hostname and user
2024-04-08 12:09:29 +01:00
3c4a0d52b1
feat(config): Add ApiToken newtype
2024-04-08 11:50:10 +01:00
c3f2266dc1
feat(config): Parse RepoConfig
2024-04-08 11:34:07 +01:00
d5e9b14e3d
refactor(config): rename Config as ServerConfig
2024-04-08 08:33:46 +01:00
a4e781d4e4
feat(config): make RepoDetails Clone
2024-04-08 08:22:23 +01:00
77705035f9
feat(config): impl Display for RepoDetails
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
2024-04-08 08:12:31 +01:00
e9685abf5f
feat(config): Repos specify which branch to read config from
ci/woodpecker/push/docker Pipeline was successful
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
2024-04-08 08:05:13 +01:00
3ac4894d68
feat(config): add ForgeDetails and RepoDetails types
2024-04-07 20:15:41 +01:00
f1041d6fe6
fix(config): parse the server file with sections
2024-04-07 19:10:37 +01:00
dc4110596f
feat(config): implement Display for ForgeType
2024-04-07 18:36:27 +01:00
a3c52c7761
feat(config): rename propery url as hostname
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/todo-check Pipeline was successful
ci/woodpecker/push/docker Pipeline failed
2024-04-07 16:14:05 +01:00
cb0a7f7cd7
feat(config): rename property type as forge_type
2024-04-07 16:11:23 +01:00
cd8d236940
chore: cargo clippy fixes
2024-04-07 16:09:16 +01:00
efb55e4b3b
feat(server/config): Parse file
2024-04-07 13:47:39 +01:00