Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
---|---|
License | BSD3 |
Maintainer | robstewart57@gmail.com |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- runGitLab :: (MonadUnliftIO m, MonadIO m) => GitLabServerConfig -> GitLab m a -> m a
- module GitLab.Types
- module GitLab.API.Pipelines
- module GitLab.API.Groups
- module GitLab.API.Members
- module GitLab.API.Commits
- module GitLab.API.Projects
- module GitLab.API.Users
- module GitLab.API.Issues
- module GitLab.API.Branches
- module GitLab.API.Jobs
- module GitLab.API.MergeRequests
- module GitLab.API.Repositories
- module GitLab.API.RepositoryFiles
- module GitLab.API.Todos
Documentation
runGitLab :: (MonadUnliftIO m, MonadIO m) => GitLabServerConfig -> GitLab m a -> m a Source #
runs a GitLab action.
Internally, this creates a single Manager
, whichs keeps track of
open connections for keep-alive and which is shared between
multiple threads and requests.
An example of its use is:
projectsWithIssuesEnabled :: IO [Project] projectsWithIssuesEnabled = runGitLab myConfig $ filter (issueEnabled . issues_enabled) <$> allProjects where myConfig = defaultGitLabServer { url = "https://gitlab.example.com" , token = "my_access_token" } issueEnabled Nothing = False issueEnabled (Just b) = b
module GitLab.Types
module GitLab.API.Pipelines
module GitLab.API.Groups
module GitLab.API.Members
module GitLab.API.Commits
module GitLab.API.Projects
module GitLab.API.Users
module GitLab.API.Issues
module GitLab.API.Branches
module GitLab.API.Jobs
module GitLab.API.MergeRequests
module GitLab.API.Repositories
module GitLab.API.RepositoryFiles
module GitLab.API.Todos