Safe Haskell | None |
---|---|
Language | Haskell2010 |
Using this module, you can send external events (such as git commits) to a running FunBot instance over HTTP.
Constructing events requires using types from the funbot-ext-events
package. But you should not use the ExtEvent
constructors from there,
because if they change, it will break your code. Instead, use the functions
provided below. This way new events can be added without breaking old code.
- data Bot
- data ExtEvent :: *
- mkBot :: URI -> Bool -> Bot
- sendExtEvent :: Bot -> ExtEvent -> IO (Maybe ConnError)
- mkPushEvent :: Push -> ExtEvent
- mkTagEvent :: Tag -> ExtEvent
- mkMergeRequestEvent :: MergeRequest -> ExtEvent
- mkNewsEvent :: NewsItem -> ExtEvent
- mkPasteEvent :: Paste -> ExtEvent
Documentation
data ExtEvent :: *
An event coming from one of the external event sources.
mkPushEvent :: Push -> ExtEvent Source
Construct a git push event.
mkTagEvent :: Tag -> ExtEvent Source
Construct a git tag event.
mkMergeRequestEvent :: MergeRequest -> ExtEvent Source
Construct a merge request event.
mkNewsEvent :: NewsItem -> ExtEvent Source
Construct a news item event.
mkPasteEvent :: Paste -> ExtEvent Source
Construct a paste event.