-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy pathListProjects.hs
More file actions
36 lines (29 loc) · 1.28 KB
/
ListProjects.hs
File metadata and controls
36 lines (29 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{-# LANGUAGE OverloadedStrings#-}
module Main(main) where
import qualified GitHub.Endpoints.Repos.Projects as P
import Data.List
import GitHub.Data
import GitHub.Data.Name
import GitHub.Data.Id
import GitHub.Data.Request
import Common
import qualified GitHub
import Prelude ()
main = do
auth <- getAuth
possibleProjects <- GitHub.executeRequestMaybe auth $ P.repoProjectsForR "lambda-coast" "infinite-turtles" GitHub.FetchAll
putStrLn $ either (("Error: " <>) . tshow)
(foldMap ((<> "\n") . tshow))
possibleProjects
possibleProjects <- GitHub.executeRequestMaybe auth $ P.orgProjectsForR "lambda-coast" GitHub.FetchAll
putStrLn $ either (("Error: " <>) . tshow)
(foldMap ((<> "\n") . tshow))
possibleProjects
possibleColumns <- GitHub.executeRequestMaybe auth $ P.projectColumnsForR (Id 11963370) GitHub.FetchAll
putStrLn $ either (("Error: " <>) . tshow)
(foldMap ((<> "\n") . tshow))
possibleColumns
possibleCards <- GitHub.executeRequestMaybe auth $ P.columnCardsForR (Id 13371133) GitHub.FetchAll
putStrLn $ either (("Error: " <>) . tshow)
(foldMap ((<> "\n") . tshow))
possibleCards