Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
---|---|
License | BSD3 |
Maintainer | robstewart57@gmail.com |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- type GitLab m a = ReaderT GitLabState m a
- data GitLabState = GitLabState {}
- data GitLabServerConfig = GitLabServerConfig {}
- defaultGitLabServer :: GitLabServerConfig
- data Member = Member {}
- data Namespace = Namespace {
- namespace_id :: Int
- namespace_name :: Text
- namespace_path :: Text
- kind :: Text
- full_path :: Text
- parent_id :: Maybe Text
- data Links = Links {
- self :: Text
- issues :: Text
- merge_requests :: Text
- repo_branches :: Text
- link_labels :: Text
- link_events :: Text
- members :: Text
- data Owner = Ownwer {
- owner_id :: Int
- owner_name :: Text
- owner_username :: Text
- state :: Text
- owner_avatar_url :: Maybe Text
- owner_web_url :: Text
- data Permissions = Permissions {}
- data Project = Project {
- project_id :: Int
- description :: Maybe Text
- project_name :: Text
- name_with_namespace :: Text
- project_path :: Text
- path_with_namespace :: Text
- project_created_at :: Text
- default_branch :: Maybe Text
- tag_list :: [Text]
- ssh_url_to_repo :: Text
- http_url_to_repo :: Text
- project_web_url :: Text
- readme_url :: Maybe Text
- project_avatar_url :: Maybe Text
- star_count :: Int
- forks_count :: Int
- last_activity_at :: Text
- namespace :: Namespace
- _links :: Maybe Links
- archived :: Maybe Bool
- visibility :: Maybe Text
- owner :: Maybe Owner
- resolve_outdated_diff_discussions :: Maybe Bool
- container_registry_enabled :: Maybe Bool
- issues_enabled :: Maybe Bool
- merge_requests_enabled :: Maybe Bool
- wiki_enabled :: Maybe Bool
- jobs_enabled :: Maybe Bool
- snippets_enabled :: Maybe Bool
- shared_runners_enabled :: Maybe Bool
- lfs_enabled :: Maybe Bool
- creator_id :: Maybe Int
- forked_from_project :: Maybe Project
- import_status :: Maybe String
- open_issues_count :: Maybe Int
- public_jobs :: Maybe Bool
- ci_config_path :: Maybe Text
- shared_with_groups :: Maybe [Object]
- only_allow_merge_if_pipeline_succeeds :: Maybe Bool
- request_access_enabled :: Maybe Bool
- only_allow_merge_if_all_discussions_are_resolved :: Maybe Bool
- printing_merge_request_link_enabled :: Maybe Bool
- merge_method :: Maybe Text
- permissions :: Maybe Permissions
- data User = User {
- user_id :: Int
- user_username :: Text
- user_name :: Text
- user_state :: Text
- user_avatar_uri :: Maybe Text
- user_web_url :: Maybe Text
- data Milestone = Milestone {}
- data TimeStats = TimeStats {}
- data Issue = Issue {
- issue_state :: Text
- issue_description :: Text
- issue_author :: User
- milestone :: Maybe Milestone
- issue_project_id :: Int
- assignees :: Maybe [User]
- assignee :: Maybe User
- updated_at :: Text
- closed_at :: Maybe Text
- closed_by :: Maybe User
- issue_id :: Int
- issue_title :: Text
- issue_created_at :: Text
- iid :: Int
- issue_labels :: [Text]
- upvotes :: Int
- downvotes :: Int
- user_notes_count :: Int
- issue_due_date :: Maybe Text
- issue_web_url :: Text
- confidential :: Bool
- weight :: Maybe Text
- discussion_locked :: Maybe Bool
- time_stats :: TimeStats
- data Pipeline = Pipeline {
- pipeline_id :: Int
- sha :: Text
- pipeline_ref :: Text
- pipeline_status :: Text
- pipeline_web_url :: Maybe Text
- data Commit = Commit {
- commit_id :: Text
- short_id :: Text
- title :: Text
- author_name :: Text
- author_email :: Text
- authored_date :: Text
- committer_name :: Text
- committer_email :: Text
- committed_date :: Text
- commit_created_at :: Text
- message :: Text
- parent_ids :: Maybe [Text]
- last_pipeline :: Maybe Pipeline
- stats :: Maybe Stats
- commit_status :: Maybe Text
- data Stats = Stats {}
- data Repository = Repository {}
- data Job = Job {}
- data Artifact = Artifact {}
- data Branch = Branch {}
- data RepositoryFile = RepositoryFile {}
- data MergeRequest = MergeRequest {
- merge_request_id :: Int
- merge_request_iid :: Int
- merge_request_project_id :: Int
- merge_request_title :: Text
- merge_request_description :: Text
- merge_request_state :: Text
- merge_request_merged_by :: Maybe User
- merge_request_merged_at :: Maybe Text
- merge_request_closed_by :: Maybe User
- merge_request_closed_at :: Maybe Text
- merge_request_created_at :: Text
- merge_request_updated_at :: Text
- merge_request_target_branch :: Text
- merge_request_source_branch :: Text
- merge_request_upvotes :: Int
- merge_request_downvotes :: Int
- merge_request_author :: User
- merge_request_assignee :: Maybe User
- merge_request_source_project_id :: Int
- merge_request_target_project_id :: Int
- merge_request_labels :: [Text]
- merge_request_work_in_progress :: Bool
- merge_request_milestone :: Maybe Milestone
- merge_request_merge_when_pipeline_succeeds :: Bool
- merge_request_merge_status :: Text
- merge_request_sha :: Text
- merge_request_merge_commit_sha :: Maybe Text
- merge_request_user_notes_count :: Int
- merge_request_discussion_locked :: Maybe Bool
- merge_request_should_remove_source_branch :: Maybe Bool
- merge_request_force_remove_source_branch :: Maybe Bool
- merge_request_web_url :: Text
- merge_request_time_stats :: TimeStats
- merge_request_squash :: Bool
- merge_request_approvals_before_merge :: Maybe Bool
Documentation
type GitLab m a = ReaderT GitLabState m a Source #
type synonym for all GitLab actions.
data GitLabState Source #
state used by GitLab actions, used internally.
member of a project.
Member | |
|
Instances
namespaces.
Namespace | |
|
Instances
Eq Namespace Source # | |
Show Namespace Source # | |
Generic Namespace Source # | |
FromJSON Namespace Source # | |
type Rep Namespace Source # | |
Defined in GitLab.Types type Rep Namespace = D1 (MetaData "Namespace" "GitLab.Types" "gitlab-haskell-0.1.0.0-8boLGMZ0RoOEFujHRGrXnR" False) (C1 (MetaCons "Namespace" PrefixI True) ((S1 (MetaSel (Just "namespace_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: (S1 (MetaSel (Just "namespace_name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "namespace_path") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) :*: (S1 (MetaSel (Just "kind") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "full_path") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "parent_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))))) |
links.
Links | |
|
Instances
Eq Links Source # | |
Show Links Source # | |
Generic Links Source # | |
FromJSON Links Source # | |
type Rep Links Source # | |
Defined in GitLab.Types type Rep Links = D1 (MetaData "Links" "GitLab.Types" "gitlab-haskell-0.1.0.0-8boLGMZ0RoOEFujHRGrXnR" False) (C1 (MetaCons "Links" PrefixI True) ((S1 (MetaSel (Just "self") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "issues") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "merge_requests") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) :*: ((S1 (MetaSel (Just "repo_branches") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "link_labels") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :*: (S1 (MetaSel (Just "link_events") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "members") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))) |
owners.
Ownwer | |
|
Instances
Eq Owner Source # | |
Show Owner Source # | |
Generic Owner Source # | |
FromJSON Owner Source # | |
type Rep Owner Source # | |
Defined in GitLab.Types type Rep Owner = D1 (MetaData "Owner" "GitLab.Types" "gitlab-haskell-0.1.0.0-8boLGMZ0RoOEFujHRGrXnR" False) (C1 (MetaCons "Ownwer" PrefixI True) ((S1 (MetaSel (Just "owner_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: (S1 (MetaSel (Just "owner_name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "owner_username") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) :*: (S1 (MetaSel (Just "state") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "owner_avatar_url") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "owner_web_url") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))) |
data Permissions Source #
permissions.
Instances
projects.
Instances
registered users.
User | |
|
Instances
Eq User Source # | |
Show User Source # | |
Generic User Source # | |
FromJSON User Source # | |
type Rep User Source # | |
Defined in GitLab.Types type Rep User = D1 (MetaData "User" "GitLab.Types" "gitlab-haskell-0.1.0.0-8boLGMZ0RoOEFujHRGrXnR" False) (C1 (MetaCons "User" PrefixI True) ((S1 (MetaSel (Just "user_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: (S1 (MetaSel (Just "user_username") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "user_name") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) :*: (S1 (MetaSel (Just "user_state") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "user_avatar_uri") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "user_web_url") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))))) |
project milestones.
Instances
time stats.
Instances
Eq TimeStats Source # | |
Show TimeStats Source # | |
Generic TimeStats Source # | |
FromJSON TimeStats Source # | |
type Rep TimeStats Source # | |
Defined in GitLab.Types type Rep TimeStats = D1 (MetaData "TimeStats" "GitLab.Types" "gitlab-haskell-0.1.0.0-8boLGMZ0RoOEFujHRGrXnR" False) (C1 (MetaCons "TimeStats" PrefixI True) ((S1 (MetaSel (Just "time_estimate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "total_time_spent") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) :*: (S1 (MetaSel (Just "humane_time_estimate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "human_total_time_spent") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))))) |
project issues.
Issue | |
|
Instances
project pipelines
Pipeline | |
|
Instances
Show Pipeline Source # | |
Generic Pipeline Source # | |
FromJSON Pipeline Source # | |
type Rep Pipeline Source # | |
Defined in GitLab.Types type Rep Pipeline = D1 (MetaData "Pipeline" "GitLab.Types" "gitlab-haskell-0.1.0.0-8boLGMZ0RoOEFujHRGrXnR" False) (C1 (MetaCons "Pipeline" PrefixI True) ((S1 (MetaSel (Just "pipeline_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "sha") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :*: (S1 (MetaSel (Just "pipeline_ref") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "pipeline_status") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "pipeline_web_url") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))))) |
code commits.
Commit | |
|
Instances
commit stats.
Instances
Show Stats Source # | |
Generic Stats Source # | |
FromJSON Stats Source # | |
type Rep Stats Source # | |
Defined in GitLab.Types type Rep Stats = D1 (MetaData "Stats" "GitLab.Types" "gitlab-haskell-0.1.0.0-8boLGMZ0RoOEFujHRGrXnR" False) (C1 (MetaCons "Stats" PrefixI True) (S1 (MetaSel (Just "additions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: (S1 (MetaSel (Just "deletions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "total") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))) |
data Repository Source #
repositories.
Repository | |
|
Instances
jobs.
Job | |
|
Instances
artifacts.
Instances
Show Artifact Source # | |
Generic Artifact Source # | |
FromJSON Artifact Source # | |
type Rep Artifact Source # | |
Defined in GitLab.Types type Rep Artifact = D1 (MetaData "Artifact" "GitLab.Types" "gitlab-haskell-0.1.0.0-8boLGMZ0RoOEFujHRGrXnR" False) (C1 (MetaCons "Artifact" PrefixI True) ((S1 (MetaSel (Just "file_type") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "size") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) :*: (S1 (MetaSel (Just "filename") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "file_format") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))) |
code branches.
Branch | |
|
Instances
data RepositoryFile Source #
files in a repository.
Instances
data MergeRequest Source #
project merge requests.