Skip to content

Commit 3470ed9

Browse files
committed
userRepo should be repository
1 parent 5b6b4e8 commit 3470ed9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/Repos/ShowRepo.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Data.List
55
import Data.Maybe
66

77
main = do
8-
possibleRepo <- Github.userRepo "mike-burns" "trylambda"
8+
possibleRepo <- Github.repository "mike-burns" "trylambda"
99
case possibleRepo of
1010
(Left error) -> putStrLn $ "Error: " ++ (show error)
1111
(Right repo) -> putStrLn $ formatRepo repo

src/GitHub/Endpoints/Repos.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ organizationReposR org publicity =
136136

137137
-- | Details on a specific repo, given the owner and repo name.
138138
--
139-
-- > userRepo "mike-burns" "github"
139+
-- > repository "mike-burns" "github"
140140
repository :: Name Owner -> Name Repo -> IO (Either Error Repo)
141141
repository = repository' Nothing
142142

143143
-- | Details on a specific repo, given the owner and repo name.
144144
-- With authentication.
145145
--
146-
-- > userRepo' (Just (BasicAuth (user, password))) "mike-burns" "github"
146+
-- > repository' (Just (BasicAuth (user, password))) "mike-burns" "github"
147147
repository' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error Repo)
148148
repository' auth user repo =
149149
executeRequestMaybe auth $ repositoryR user repo

0 commit comments

Comments
 (0)