Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
---|---|
License | BSD3 |
Maintainer | robstewart57@gmail.com |
Stability | stable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- repositoryTree :: Project -> GitLab [Repository]
- fileArchive :: Project -> ArchiveFormat -> FilePath -> GitLab (Either (Response ByteString) ())
- fileArchiveBS :: Project -> ArchiveFormat -> GitLab (Either (Response ByteString) ByteString)
- contributors :: Project -> Maybe OrderBy -> Maybe SortBy -> GitLab [Contributor]
- mergeBase :: Project -> [Text] -> GitLab (Either (Response ByteString) (Maybe Commit))
List repository tree
:: Project | the project |
-> GitLab [Repository] |
returns a list of repository files and directories in a project.
Get file archive
:: Project | project |
-> ArchiveFormat | file format |
-> FilePath | file path to store the archive |
-> GitLab (Either (Response ByteString) ()) |
get a file archive of the repository files. For example:
fileArchive myProject TarGz "/tmp/myProject.tar.gz"
:: Project | project |
-> ArchiveFormat | file format |
-> GitLab (Either (Response ByteString) ByteString) |
get a file archive of the repository files as a
ByteString
. For example:
fileArchiveBS myProject TarGz "/tmp/myProject.tar.gz"
Contributors
:: Project | project |
-> Maybe OrderBy | Return contributors ordered by name, email, or commits (orders by commit date) fields. Default is commits. |
-> Maybe SortBy | Return contributors sorted in asc or desc order. Default is asc. |
-> GitLab [Contributor] |
Get repository contributors list.