mirror of
https://github.com/Smaug123/gitea-repo-config
synced 2025-10-09 17:38:38 +00:00
Make types testable (#55)
This commit is contained in:
@@ -19,7 +19,7 @@ module Gitea =
|
||||
|
||||
let checkUsers
|
||||
(config : GiteaConfig)
|
||||
(client : Gitea.Client)
|
||||
(client : IGiteaClient)
|
||||
: Async<Result<unit, Map<User, AlignmentError<UserInfo>>>>
|
||||
=
|
||||
async {
|
||||
@@ -69,7 +69,7 @@ module Gitea =
|
||||
let checkRepos
|
||||
(logger : ILogger)
|
||||
(config : GiteaConfig)
|
||||
(client : Gitea.Client)
|
||||
(client : IGiteaClient)
|
||||
: Async<Result<unit, Map<User, Map<RepoName, AlignmentError<Repo>>>>>
|
||||
=
|
||||
async {
|
||||
@@ -151,7 +151,7 @@ module Gitea =
|
||||
|
||||
let reconcileDifferingConfiguration
|
||||
(logger : ILogger)
|
||||
(client : Gitea.Client)
|
||||
(client : IGiteaClient)
|
||||
(githubApiToken : string option)
|
||||
(user : string)
|
||||
(repoName : string)
|
||||
@@ -512,7 +512,7 @@ module Gitea =
|
||||
|
||||
let reconcileRepoErrors
|
||||
(logger : ILogger)
|
||||
(client : Gitea.Client)
|
||||
(client : IGiteaClient)
|
||||
(githubApiToken : string option)
|
||||
(m : Map<User, Map<RepoName, AlignmentError<Repo>>>)
|
||||
: Async<unit>
|
||||
@@ -619,7 +619,7 @@ module Gitea =
|
||||
let reconcileUserErrors
|
||||
(log : ILogger)
|
||||
(getUserInput : string -> string)
|
||||
(client : Gitea.Client)
|
||||
(client : IGiteaClient)
|
||||
(m : Map<User, AlignmentError<UserInfo>>)
|
||||
=
|
||||
let userInputLock = obj ()
|
||||
|
Reference in New Issue
Block a user