tide-github 0.1.0

Process Github webhooks in [tide](https://github.com/http-rs/tide)
Documentation

tide-github

Process Github webhooks in tide.

use octocrab::models::issues::Comment;
use tide_github::Event;

#[async_std::main]
async fn main() -> tide::Result<()> {
    let mut app = tide::new();
    let github = tide_github::new(b"My Github webhook s3cr#t")
        .on(Event::IssuesComment, |mut req| {
            Box::pin(async move {
                let _comment: Comment = req.body_json().await.unwrap();
            })
        })
        .build();
    app.at("/gh_webhooks").nest(github);
    app.listen("127.0.0.1:3000").await?;
    Ok(())
}