Skip to content

Commit

Permalink
feat: getCurrentRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
konn committed Mar 19, 2024
1 parent f9125b9 commit ad8afde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions effectful-github/src/Effectful/Network/GitHub/Apps.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module Effectful.Network.GitHub.Apps (

-- ** GitHub Repository Context
GitHubRepo,
getCurrentRepo,
Repository (..),
parseRepo,
withGitHubRepo,
Expand Down Expand Up @@ -264,6 +265,9 @@ rawHttpReqImpl cfg btok endpoint = do
}
pure req

getCurrentRepo :: (GitHubRepo :> es) => Eff es Repository
getCurrentRepo = getStaticRep <&> \(GHRepo repo) -> repo

getRawContent ::
( GitHub :> es
, HasCallStack
Expand Down

0 comments on commit ad8afde

Please sign in to comment.