8c4ad4b534
chore: clean up some logging
2024-04-12 17:41:09 +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
3735afb2f8
fix: don't reload config when updating next branch
...
The StartRepo handler loads the config before then sending the
ValidateRepo message. However, we already have the config, so reloading
it isn't needed.
Added todo markers on sleep and dispatching of ValidateRepo where it is
used as a stop-gap until we have working webhook integration.
Add todo markers for checking valid commit messages before advancing
next branch.
2024-04-12 10:14:32 +01:00
8ed942a501
fix: remove extra StartRepo message
...
Closes kemitix/git-next#32
2024-04-12 08:41:24 +01:00
c9d52a5b7f
feat: when no action to take, wait 10 seconds then restart
...
As a stop-gap until we have a working webhook server, this will poll the
repo for updates to it's status.
Closes kemitix/git-next#22
2024-04-11 18:30:52 +01:00
bb4d171174
fix: restore lost sleep
2024-04-11 18:19:47 +01:00
f7dc27f67e
feat: git command output is suppressed
...
Closes kemitix/git-next#27
2024-04-11 18:19:47 +01:00
ec258bca97
refactor: rename ResetForce::Normal as None
2024-04-11 18:09:57 +01:00
e0b15712c2
refactor: reuse branch::reset to advance next towards dev
2024-04-11 18:05:26 +01:00
6bad8a27f7
refactor: reuse branch::reset to advance main branch to next
2024-04-11 18:02:07 +01:00
ab58981f87
refactor: reuse branch::reset to advance main branch to next
2024-04-11 17:45:11 +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
ed1ab6faa5
feat: add branch::reset function
2024-04-11 14:24:18 +01:00
1c9f7cb4ea
fix: clean up instrumentation
2024-04-11 07:46:30 +01:00
7dab1da44b
fix(server): reduce complexity of StartMonitoring handler
...
Closes kemitix/git-next#25
2024-04-11 07:15:19 +01:00
9469d27476
fix(server): Pause before checking CI status when just updated branch
...
If we check the status of the commit as soon as we push we get a Pass before the CI tests have even started. Wait briefly (10 seconds) to allow the CI to start and set the status to pending.
Closes kemitix/git-next#24
2024-04-10 22:40:33 +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
3a761b5b21
feat(server): Implement advancing main branch to the next commit
...
Closes kemitix/git-next#19
2024-04-10 17:36:08 +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
e27b050a09
feat(server): log returned status for next branch
2024-04-10 11:47:14 +01:00
5c4b745c00
feat(server): add marker info logs for advance main and next
2024-04-10 11:46:51 +01:00
546d91554c
feat(server): next commit status is returned as pass, fail ro pending
2024-04-10 09:17:44 +01:00
c66170c3b4
feat(server): implement repo::status::check_next
2024-04-10 07:13:55 +01:00
ad7d513481
feat(server): add message and handler for AdvanceMainTo(Commit)
2024-04-10 06:55:58 +01:00
7ed30fc382
feat(server): add stub for branch::advance_main
2024-04-10 06:55:55 +01:00
70e0f94042
feat(server): Assess next action for repo
2024-04-09 22:19:33 +01:00
3203bbd967
feat(server): validate branch head positions
2024-04-09 18:18:19 +01:00
9eb7660f7b
feat(server/forgejo): fetch commit histories
2024-04-09 18:15:19 +01:00
bdea942bcb
feat(server): create stub for validating branch positions
2024-04-09 15:31:59 +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
abbd2e66e6
feat(actors/repo): add RepoActor::new
2024-04-08 11:34:07 +01:00
77705035f9
feat(config): impl Display for RepoDetails
2024-04-08 08:12:31 +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
eacefefe20
feat(server/actors): create stub RepoActor
2024-04-07 20:15:41 +01:00