Commit graph

25 commits

Author SHA1 Message Date
dd91aa4f69 feat(server/webhook): implement register webhook
Closes kemitix/git-next#15
2024-04-14 14:37:55 +01:00
af221f8a2f fix(forge/mock): visibility on methods 2024-04-13 06:56:11 +01:00
3bbe9abbd9 test: Create stub mock forge
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' 2024-04-12 20:53:55 +01:00
9df732ce97 chore: reduce logging to debug 2024-04-12 19:46:52 +01:00
ee9cc53540 fix: don't log url containing API token 2024-04-12 19:41:47 +01:00
fb74879309 chore(foregejo): don't log fetch url
It contained the api token
2024-04-12 19:21:27 +01:00
4e6a306a72 feat: Don't advance next branch if the target commit message is invalid
Closes kemitix/git-next#33
2024-04-12 17:31:55 +01:00
cedaf16acf feat: wrap API Token in a secrect::Secret and avoid logging
Closes kemitix/git-next#30
2024-04-12 15:27:03 +01:00
e8d174ee84 fix(forgejo): treat a blank status check result as pending
Closes kemitix/git-next#29
2024-04-12 13:51:56 +01:00
0b427f1d4c fix: avoid using terrors::OneOf across an await boundary
OneOf appears to not be Send
2024-04-12 10:14:32 +01:00
115b353389 feat: Force push next branch to main when it isn't a dev ancestor
Closes kemitix/git-next#21
2024-04-11 15:48:18 +01:00
d2d49f353c refactor: pass RepoDetails by reference 2024-04-11 15:47:28 +01:00
1c9f7cb4ea fix: clean up instrumentation 2024-04-11 07:46:30 +01:00
50a56aadee fix(server): Doesn't properly detect when dev or next are ahead
Closes kemitix/git-next#23
2024-04-10 20:51:40 +01:00
98a94ea855 Implement advancing next branch to next commit on dev branch
Uses gix to invoke git commands as there is not API to directly update
the position of a branch.

Closes kemitix/git-next#14
2024-04-10 15:54:50 +01:00
a5e9421405 feat(server): implement forge::forgejo::get_commit_history
Closes kemitix/git-next#13
2024-04-10 11:48:24 +01:00
0721b63448 fix(server): stop logging all network requests 2024-04-10 11:40:06 +01:00
d64024e1ab feat(server): implement Display for forge::Commit 2024-04-10 10:54:41 +01:00
546d91554c feat(server): next commit status is returned as pass, fail ro pending 2024-04-10 09:17:44 +01:00
a7a3f8a67b feat(server): add stub for forge::forgejo::get_commit_status 2024-04-10 07:13:55 +01:00
8ad84bc72b feat(server): add deserialise types for commit status 2024-04-10 06:56:00 +01:00
9eb7660f7b feat(server/forgejo): fetch commit histories 2024-04-09 18:15:19 +01:00
ca37045e3a feat(server/forgejo): verify branches exist in repo 2024-04-09 14:52:12 +01:00
b093c002d4 feat(server/forgejo): load repo config 2024-04-09 11:09:07 +01:00