Add refresh-auth (#64)

This commit is contained in:
Patrick Stevens
2023-08-07 16:35:46 +01:00
committed by GitHub
parent 079725b8ac
commit a8f9e6a9f3
9 changed files with 215 additions and 29 deletions

View File

@@ -75,6 +75,8 @@ module Client =
member _.RepoAddPushMirror (user, repo, createPushMirrorOption) = failwith "Not implemented"
member _.RepoDeletePushMirror (user, repo, remoteName) = failwith "Not implemented"
member _.RepoListPushMirrors (loginName, userName, page, count) = failwith "Not implemented"
member _.RepoListBranchProtection (loginName, userName) = failwith "Not implemented"

View File

@@ -35,6 +35,7 @@ type GiteaClientMock =
UserListRepos : string * int64 option * int64 option -> Gitea.Repository array Task
RepoAddPushMirror : string * string * Gitea.CreatePushMirrorOption -> Gitea.PushMirror Task
RepoDeletePushMirror : string * string * string -> unit Task
RepoListPushMirrors : string * string * int64 option * int64 option -> Gitea.PushMirror array Task
RepoListBranchProtection : string * string -> Gitea.BranchProtection array Task
@@ -64,6 +65,7 @@ type GiteaClientMock =
UserListRepos = fun _ -> failwith "Unimplemented"
RepoAddPushMirror = fun _ -> failwith "Unimplemented"
RepoDeletePushMirror = fun _ -> failwith "Unimplemented"
RepoListPushMirrors = fun _ -> failwith "Unimplemented"
RepoListBranchProtection = fun _ -> failwith "Unimplemented"
@@ -96,6 +98,9 @@ type GiteaClientMock =
member this.RepoListPushMirrors (loginName, userName, page, count) =
this.RepoListPushMirrors (loginName, userName, page, count)
member this.RepoDeletePushMirror (loginName, userName, remoteName) =
this.RepoDeletePushMirror (loginName, userName, remoteName)
member this.RepoListBranchProtection (login, user) =
this.RepoListBranchProtection (login, user)