main: add TODO

This commit is contained in:
Antoine Martin 2021-03-29 18:12:06 +02:00
parent ae3ab8c893
commit a3fbef6fc6

View file

@ -23,6 +23,8 @@ struct JobSender(Mutex<Sender<Job>>);
#[post("/", data = "<payload>")] #[post("/", data = "<payload>")]
fn gitea_webhook(payload: Json<GiteaWebHook>, sender: State<JobSender>) -> Status { fn gitea_webhook(payload: Json<GiteaWebHook>, sender: State<JobSender>) -> Status {
// TODO: validate Gitea signature
{ {
let sender = sender.0.lock().unwrap(); let sender = sender.0.lock().unwrap();
let repo = &payload.repository; let repo = &payload.repository;