| Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
|---|---|
| License | BSD3 |
| Maintainer | [email protected] |
| Stability | stable |
| Safe Haskell | None |
| Language | Haskell2010 |
GitLab.API.Repositories
Description
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
Arguments
| :: Project | the project |
| -> GitLab [Repository] |
returns a list of repository files and directories in a project.
Get file archive
Arguments
| :: 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"
Arguments
| :: 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
Arguments
| :: 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.