Copyright | (c) Rob Stewart Heriot-Watt University 2019 |
---|---|
License | BSD3 |
Maintainer | robstewart57@gmail.com |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- type GitLab a = ReaderT GitLabState IO a
- data GitLabState = GitLabState {}
- data GitLabServerConfig = GitLabServerConfig {}
- defaultGitLabServer :: GitLabServerConfig
- data ArchiveFormat
- data Member = Member {}
- data Namespace = Namespace {
- namespace_id :: Int
- namespace_name :: Text
- namespace_path :: Text
- kind :: Text
- full_path :: Text
- parent_id :: Maybe Int
- 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 {}
- type ProjectId = Int
- data Project = Project {
- project_id :: Int
- description :: Maybe Text
- project_name :: Text
- name_with_namespace :: Text
- project_path :: Text
- project_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
- project_stats :: Maybe ProjectStats
- data ProjectStats = ProjectStats {}
- 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 {
- milestone_project_id :: Maybe Int
- milestone_group_id :: Maybe Int
- milestone_description :: Text
- milestone_state :: MilestoneState
- milestone_due_date :: Maybe UTCTime
- milestone_iid :: Int
- milestone_created_at :: Maybe UTCTime
- milestone_title :: Text
- milestone_id :: Int
- milestone_updated_at :: UTCTime
- milestone_web_url :: URL
- data MilestoneState
- data TimeStats = TimeStats {}
- type IssueId = Int
- data Issue = Issue {
- issue_state :: Text
- issue_description :: Maybe Text
- issue_author :: User
- milestone :: Maybe Milestone
- issue_project_id :: ProjectId
- assignees :: Maybe [User]
- assignee :: Maybe User
- updated_at :: Text
- closed_at :: Maybe Text
- closed_by :: Maybe User
- issue_id :: IssueId
- 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
- commit_parent_ids :: Maybe [String]
- last_pipeline :: Maybe Pipeline
- commit_stats :: Maybe CommitStats
- commit_status :: Maybe Text
- data CommitTodo = CommitTodo {}
- data CommitStats = Stats {}
- data Diff = Diff {}
- data Repository = Repository {}
- data Job = Job {
- job_commit :: Commit
- job_coverage :: Maybe Text
- job_created_at :: Text
- job_started_at :: Text
- job_finished_at :: Text
- job_duration :: Double
- job_artifacts_expire_at :: Maybe Text
- job_id :: Int
- job_name :: Text
- job_pipeline :: Pipeline
- job_ref :: Text
- job_artifacts :: [Artifact]
- job_stage :: Text
- job_status :: Text
- job_tag :: Bool
- job_web_url :: Text
- job_user :: User
- data Artifact = Artifact {}
- data Group = Group {
- group_id :: Int
- group_name :: Text
- group_path :: Text
- group_description :: Text
- group_visibility :: Text
- group_lfs_enabled :: Bool
- group_avatar_url :: Maybe Text
- group_web_url :: Text
- group_request_access_enabled :: Bool
- group_full_name :: Text
- group_full_path :: Text
- group_file_template_project_id :: Maybe Int
- group_parent_id :: Maybe Int
- data GroupShare = GroupShare {}
- 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_allow_collaboration :: Maybe Bool
- merge_request_allow_maintainer_to_push :: Maybe Bool
- merge_request_web_url :: Text
- merge_request_time_stats :: TimeStats
- merge_request_squash :: Bool
- merge_request_changes_count :: Maybe Int
- merge_request_pipeline :: Maybe Pipeline
- merge_request_diverged_commits_count :: Maybe Int
- merge_request_rebase_in_progress :: Maybe Bool
- merge_request_has_conflicts :: Bool
- merge_request_blocking_discussions_resolved :: Maybe Bool
- merge_request_approvals_before_merge :: Maybe Bool
- data Todo = Todo {}
- data TodoProject = TP {}
- data TodoAction
- data TodoTarget
- data TodoState
- data Version = Version {}
- type URL = Text
- data EditIssueReq = EditIssueReq {
- edit_issue_id :: ProjectId
- edit_issue_issue_iid :: IssueId
- edit_issue_title :: Maybe Text
- edit_issue_description :: Maybe Text
- edit_issue_confidential :: Maybe Bool
- edit_issue_assignee_ids :: Maybe [Int]
- edit_issue_milestone_id :: Maybe Int
- edit_issue_labels :: Maybe [Text]
- edit_issue_state_event :: Maybe Text
- edit_issue_updated_at :: Maybe Text
- edit_issue_due_date :: Maybe Text
- edit_issue_weight :: Maybe Int
- edit_issue_discussion_locked :: Maybe Bool
- edit_issue_epic_id :: Maybe Int
- edit_issue_epic_iid :: Maybe Int
Documentation
data GitLabState Source #
state used by GitLab actions, used internally.
data ArchiveFormat Source #
archive format for file archives of repositories.
See getFileArchive
in Repositories
.
Instances
Show ArchiveFormat Source # | |
Defined in GitLab.Types showsPrec :: Int -> ArchiveFormat -> ShowS # show :: ArchiveFormat -> String # showList :: [ArchiveFormat] -> ShowS # |
member of a project.
Member | |
|
Instances
namespaces.
Namespace | |
|
Instances
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.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "Namespace" PrefixI True) ((S1 (MetaSel (Just "namespace_id") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "namespace_name") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "namespace_path") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "kind") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "full_path") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "parent_id") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Int)))))) |
links.
Links | |
|
Instances
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.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "Links" PrefixI True) ((S1 (MetaSel (Just "self") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "issues") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "merge_requests") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "repo_branches") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "link_labels") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "link_events") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "members") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text))))) |
owners.
Ownwer | |
|
Instances
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.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "Ownwer" PrefixI True) ((S1 (MetaSel (Just "owner_id") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "owner_name") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "owner_username") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "state") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "owner_avatar_url") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "owner_web_url") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text))))) |
data Permissions Source #
permissions.
Instances
Show Permissions Source # | |
Defined in GitLab.Types showsPrec :: Int -> Permissions -> ShowS # show :: Permissions -> String # showList :: [Permissions] -> ShowS # | |
Generic Permissions Source # | |
Defined in GitLab.Types type Rep Permissions :: Type -> Type # from :: Permissions -> Rep Permissions x # to :: Rep Permissions x -> Permissions # | |
FromJSON Permissions Source # | |
Defined in GitLab.Types parseJSON :: Value -> Parser Permissions # parseJSONList :: Value -> Parser [Permissions] # | |
type Rep Permissions Source # | |
Defined in GitLab.Types type Rep Permissions = D1 (MetaData "Permissions" "GitLab.Types" "gitlab-haskell-0.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "Permissions" PrefixI True) (S1 (MetaSel (Just "project_access") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Object)) :*: S1 (MetaSel (Just "group_access") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Object)))) |
projects.
Instances
data ProjectStats Source #
project statistics.
ProjectStats | |
|
Instances
registered users.
User | |
|
Instances
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.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "User" PrefixI True) ((S1 (MetaSel (Just "user_id") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "user_username") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "user_name") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "user_state") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "user_avatar_uri") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "user_web_url") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Text)))))) |
milestones.
Instances
data MilestoneState Source #
milestone state.
Instances
Show MilestoneState Source # | |
Defined in GitLab.Types showsPrec :: Int -> MilestoneState -> ShowS # show :: MilestoneState -> String # showList :: [MilestoneState] -> ShowS # | |
FromJSON MilestoneState Source # | |
Defined in GitLab.Types parseJSON :: Value -> Parser MilestoneState # parseJSONList :: Value -> Parser [MilestoneState] # |
time stats.
Instances
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.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "TimeStats" PrefixI True) ((S1 (MetaSel (Just "time_estimate") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "total_time_spent") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int)) :*: (S1 (MetaSel (Just "humane_time_estimate") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "human_total_time_spent") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (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.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "Pipeline" PrefixI True) ((S1 (MetaSel (Just "pipeline_id") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "sha") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "pipeline_ref") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "pipeline_status") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "pipeline_web_url") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Text)))))) |
code commits.
Commit | |
|
Instances
data CommitTodo Source #
summary of a code commit for TODOs.
Instances
data CommitStats Source #
commit stats.
Instances
Show CommitStats Source # | |
Defined in GitLab.Types showsPrec :: Int -> CommitStats -> ShowS # show :: CommitStats -> String # showList :: [CommitStats] -> ShowS # | |
Generic CommitStats Source # | |
Defined in GitLab.Types type Rep CommitStats :: Type -> Type # from :: CommitStats -> Rep CommitStats x # to :: Rep CommitStats x -> CommitStats # | |
FromJSON CommitStats Source # | |
Defined in GitLab.Types parseJSON :: Value -> Parser CommitStats # parseJSONList :: Value -> Parser [CommitStats] # | |
type Rep CommitStats Source # | |
Defined in GitLab.Types type Rep CommitStats = D1 (MetaData "CommitStats" "GitLab.Types" "gitlab-haskell-0.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "Stats" PrefixI True) (S1 (MetaSel (Just "additions") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "deletions") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "total") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int)))) |
diff between two commits.
Instances
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.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "Artifact" PrefixI True) ((S1 (MetaSel (Just "file_type") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "size") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Int)) :*: (S1 (MetaSel (Just "filename") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "file_format") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Text))))) |
groups.
Instances
data GroupShare Source #
response to sharing a project with a group.
GroupShare | |
|
code branches.
Branch | |
|
Instances
data RepositoryFile Source #
files in a repository.
Instances
data MergeRequest Source #
project merge requests.
Instances
TODOs.
Todo | |
|
data TodoProject Source #
A project TODO.
TP | |
|
Instances
data TodoAction Source #
TODO actions.
Instances
Show TodoAction Source # | |
Defined in GitLab.Types showsPrec :: Int -> TodoAction -> ShowS # show :: TodoAction -> String # showList :: [TodoAction] -> ShowS # | |
FromJSON TodoAction Source # | |
Defined in GitLab.Types parseJSON :: Value -> Parser TodoAction # parseJSONList :: Value -> Parser [TodoAction] # |
data TodoTarget Source #
TODO targets.
Instances
Show TodoTarget Source # | |
Defined in GitLab.Types showsPrec :: Int -> TodoTarget -> ShowS # show :: TodoTarget -> String # showList :: [TodoTarget] -> ShowS # |
version of the GitLab instance.
Instances
Show Version Source # | |
Generic Version Source # | |
FromJSON Version Source # | |
type Rep Version Source # | |
Defined in GitLab.Types type Rep Version = D1 (MetaData "Version" "GitLab.Types" "gitlab-haskell-0.2.3-2bkPsYat0o37QfshmKgsVw" False) (C1 (MetaCons "Version" PrefixI True) (S1 (MetaSel (Just "version") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "revision") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text))) |
data EditIssueReq Source #
An edit issue request.