tide-github

Crates.iotide-github
lib.rstide-github
version0.3.0
sourcesrc
created_at2022-03-20 16:53:49.453521
updated_at2022-03-24 00:52:07.564894
descriptionEasily process Github webhooks using tide
homepage
repositoryhttps://github.com/paritytech/tide-github
max_upload_size
id553648
size25,949
OpsTooling (github:paritytech:opstooling)

documentation

README

tide-github

Process Github webhooks in tide.

API docs

use tide_github::Event;

#[async_std::main]
async fn main() -> tide::Result<()> {
    let mut app = tide::new();
    let github = tide_github::new("My Github webhook s3cr#t")
        .on(Event::IssueComment, |payload| {
            println!("Got payload for repository {}", payload.repository.name);
        })
        .build();
    app.at("/gh_webhooks").nest(github);
    app.listen("127.0.0.1:3000").await?;
    Ok(())
}
Commit count: 18

cargo fmt