834dff4370
chore: convert project into a cargo workspace
2024-05-11 16:33:18 +01:00
e8062788a0
feat(server): extract git::reset from gitforge::forgejo
2024-05-09 18:48:06 +01:00
6d147efe32
feat(server): restart server when config file is updated
...
Closes kemitix/git-next#59
2024-05-07 20:10:41 +01:00
b1638a65fc
feat(server): give Server an incremental generation counter
2024-05-07 18:59:51 +01:00
9b211179bf
feat(server): extract Server actor
2024-05-07 18:59:51 +01:00
96994f2390
chore: fix typo
2024-05-07 18:59:51 +01:00
7516ec1dc1
chore(logging): clean up and reformat logging
2024-05-04 19:41:53 +01:00
5ba5a126c3
fix(gitforge): use local repo or clone to allow git push
...
The `git push` command requires a git directory (bare at a minimum)
before it can work.
The git dir must also be up-to-date with the relevant references from
the remote, so
we do a `git fetch` before a `git push`.
Closes kemitix/git-next#51
2024-05-03 19:08:58 +01:00
31ef0c19fb
feat(config): use specified gitdir when supplied
...
The user can specify a gitdir for a repo in the `git-next-server.toml` file.
When they do, then we should use that directory.
Closes kemitix/git-next#71
2024-04-29 06:52:50 +01:00
bb67b7c66d
feat(gitforge): clone repo in-process
...
Use the `gix` crate directly to create the clone rather then spawning a
`git` processess.
Closes kemitix/git-next#54
Closes kemitix/git-next#70
2024-04-28 18:01:11 +01:00
e357da4346
chore(deps): update kxio to v1.1.0
2024-04-28 16:53:02 +01:00
3dfbd44b37
refactor: rename forge as forge_config
2024-04-23 16:14:13 +01:00
17f5f62e61
feat: Clone repo when starting repo
2024-04-23 07:41:39 +01:00
1170510c44
refactor: use 'server_repo_config' consistently
2024-04-20 21:03:12 +01:00
704853017b
feat(config): User can specify git directory to use for a repo
...
Closes kemitix/git-next#53
Does not include using this information.
2024-04-19 18:38:21 +01:00
50a969ede6
refactor: move server config loading out of forgejo module
...
Delete empty modules left over
2024-04-18 20:40:28 +01:00
adb44d18c9
feat(server/gitforge): replace git abstraction
2024-04-18 08:22:55 +01:00
dd91aa4f69
feat(server/webhook): implement register webhook
...
Closes kemitix/git-next#15
2024-04-14 14:37:55 +01:00
df2d9d684c
feat(server/webhook): add webhook server
...
Closes kemitix/git-next#18
2024-04-13 20:23:24 +01:00
b21b80881e
chore(config): Rename type RepoName
as RepoAlias
...
Closes kemitix/git-next#39
2024-04-13 14:09:57 +01:00
5fcf16ea75
feat: Abstract Git command execution into injectable enum
...
Closes kemitix/git-next#36
2024-04-12 19:39:24 +01:00
869935dfc2
fix(server): Prevent losing a task waker
...
Closes kemitix/git-next#26
2024-04-12 13:00:40 +01:00
0b85ac3f8d
refactor(server): inline console_subscriber
2024-04-10 11:40:42 +01:00
b093c002d4
feat(server/forgejo): load repo config
2024-04-09 11:09:07 +01:00
7e08640743
refactor(server): reduce complexity starting server
2024-04-09 07:41:41 +01:00
abbd2e66e6
feat(actors/repo): add RepoActor::new
2024-04-08 11:34:07 +01:00
d5e9b14e3d
refactor(config): rename Config as ServerConfig
2024-04-08 08:33:46 +01:00
e9685abf5f
feat(config): Repos specify which branch to read config from
2024-04-08 08:05:13 +01:00
b66b70c08b
fix(server): fix typo
2024-04-07 20:57:51 +01:00
ca673f9545
feat(server): start repo actors
2024-04-07 20:16:41 +01:00
eacefefe20
feat(server/actors): create stub RepoActor
2024-04-07 20:15:41 +01:00
1de2bd2ecb
feat(server): log parsed config
2024-04-07 19:10:37 +01:00
ef75ecda08
feat(server): log error when fails to load config
2024-04-07 18:37:01 +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
1d42c63e53
chore(server): Rename server.rs as server/mod.rs
...
Server will be the more complex component, so prepare to add more
modules under server.
2024-04-07 13:17:02 +01:00