generated from tpl/purs
feat: list branch protections
This commit is contained in:
parent
4dbc94624a
commit
0bab60e1fb
@ -28,6 +28,13 @@ get u r b = do
|
|||||||
rep <- HTTP.fetch $ HTTP.GET /\ url /\ Auth.headers auth
|
rep <- HTTP.fetch $ HTTP.GET /\ url /\ Auth.headers auth
|
||||||
Error.tryGetRepJSON rep
|
Error.tryGetRepJSON rep
|
||||||
|
|
||||||
|
list :: forall m. MonadAff m => Username -> RepoName -> GiteaT m (Record BranchProtection)
|
||||||
|
list u r = do
|
||||||
|
{ auth } <- ask
|
||||||
|
url <- branchProtectionURL u r
|
||||||
|
rep <- HTTP.fetch $ HTTP.GET /\ url /\ Auth.headers auth
|
||||||
|
Error.tryGetRepJSON rep
|
||||||
|
|
||||||
update
|
update
|
||||||
:: forall m patch
|
:: forall m patch
|
||||||
. MonadAff m
|
. MonadAff m
|
||||||
|
Loading…
Reference in New Issue
Block a user