Copyright | (c) Denis Shevchenko, 2016 |
---|---|
License | MIT |
Maintainer | me@dshevchenko.biz |
Stability | alpha |
Safe Haskell | None |
Language | Haskell2010 |
API calls for work with info about projects.
- getProjectsInfo :: CircleCIResponse [ProjectInfo]
- data ProjectInfo = ProjectInfo {
- language :: Text
- repositoryName :: Text
- repositoryUrl :: Text
- branches :: [BranchBuildInfo]
- defaultBranch :: Text
- isOpenSource :: Bool
- followed :: Bool
- gitHubUserName :: Text
- slackChannel :: Maybe Text
- slackWebhookUrl :: Maybe Text
- slackNotifyPreferenses :: Maybe Text
- slackSubdomain :: Maybe Text
- slackAPIToken :: Maybe Text
- hipchatNotifyPreferenses :: Maybe Text
- hipchatNotify :: Maybe Text
- hipchatAPIToken :: Maybe Text
- hipchatRoom :: Maybe Text
- ircServer :: Maybe Text
- ircKeyword :: Maybe Text
- ircChannel :: Maybe Text
- ircUsername :: Maybe Text
- ircPassword :: Maybe Text
- ircNotifyPreferenses :: Maybe Text
- data BranchBuildInfo = BranchBuildInfo {}
- data BuildInfo = BuildInfo {
- status :: BuildStatus
- number :: Int
- commit :: Text
- pushDate :: UTCTime
- addingDate :: UTCTime
- data BuildStatus
- module Network.CircleCI.Common.Types
- module Network.CircleCI.Common.Run
API call
:: CircleCIResponse [ProjectInfo] | Info about projects. |
Show info about all projects user is following. Based on https://circleci.com/docs/api/#projects.
Usage example:
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE LambdaCase #-} import Network.CircleCI main :: IO () main = runCircleCI getProjectsInfo (AccountAPIToken "e64c674195bbc0d0be3efa2whatever") >>= \case Left problem -> print problem Right info -> print info
Types for calls and response
data ProjectInfo Source
Info about single project.
ProjectInfo | |
|
data BranchBuildInfo Source
Build info for a single branch.
BranchBuildInfo | |
|
Info about single build.
data BuildStatus Source
Build status.
module Network.CircleCI.Common.Run