bot: receive events from webhook
This commit is contained in:
parent
e6926d5ba2
commit
d09070dae7
5 changed files with 95 additions and 15 deletions
|
|
@ -1,2 +1,11 @@
|
|||
use std::sync::{mpsc::SyncSender};
|
||||
|
||||
mod github;
|
||||
pub use github::github_webhook;
|
||||
pub use github::{github_webhook, GitHubEvent};
|
||||
|
||||
pub struct EventSender(pub SyncSender<Event>);
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Event {
|
||||
GitHub(GitHubEvent),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue