1module CompaREST.GitHub.API
7import CompaREST.GitHub.Action.Config
8import Control.Monad.Freer
9import Control.Monad.Freer.GitHub
10import Control.Monad.Freer.Reader
11import Control.Monad.IO.Class
13import qualified Data.ByteString.Lazy.Char8 as BSLC
14import Data.OpenApi.Compare.Report
16import Data.Text (Text)
18import GitHub.Data.Checks
19import GitHub.Endpoints.Checks
21postStatusProcessing ::
22 (Members '[GitHub, Reader Config] effs, MonadIO (Eff effs)) =>
24postStatusProcessing = do
32 { checkName = mkName Proxy $ "compaREST – " <> projectName
34 , checkDetailsURL = Nothing
35 , checkExternalId = Nothing
36 , checkStatus = Just CheckInProgress
37 , checkStartedAt = Nothing
38 , checkConclusion = Nothing
39 , checkCompletedAt = Nothing
40 , checkOutput = Nothing
41 , checkActions = Nothing
45 (Members '[GitHub, Reader Config] effs, MonadIO (Eff effs)) =>
46 -- | 'Nothing' means that there were no changes at all
47 Maybe (Text, ReportStatus) ->
50 let (body, (title, conclusion)) = case x of
51 Just (b, s) -> (b,) $ case s of
52 BreakingChanges -> ("⚠️ Breaking changes found!", CheckNeutral)
53 NoBreakingChanges -> ("No breaking changes found ✨", CheckSuccess)
54 OnlyUnsupportedChanges -> ("🤷 Couldn't determine compatibility", CheckNeutral)
55 Nothing -> ("", ("✅ The API did not change", CheckSuccess))
63 { checkName = mkName Proxy $ "compaREST – " <> projectName
65 , checkDetailsURL = Nothing
66 , checkExternalId = Nothing
67 , checkStatus = Just CheckCompleted
68 , checkStartedAt = Nothing
69 , checkConclusion = Just conclusion
70 , checkCompletedAt = Nothing
77 , checkAnnotations = Nothing
78 , checkImages = Nothing
80 , checkActions = Nothing
83printJSON :: MonadIO (Eff effs) => Eff effs Value -> Eff effs ()
86 liftIO . BSLC.putStrLn $ encode x
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list