summaryrefslogtreecommitdiff
path: root/server/common/src/git_socket.rs
blob: 6e1c7d48ed86248813497789dd9e554ca155f8fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use serde::{Deserialize, Serialize};

#[derive(Deserialize, Serialize)]
pub struct GitReceive {
    pub old_value: String,
    pub new_value: String,
    pub reference: String,
}

#[derive(Deserialize, Serialize)]
pub struct GitHookRequest {
    pub pre: bool,
    pub receive: Vec<GitReceive>,
    pub object_dir: Option<String>,
    pub alt_object_dirs: Option<String>,
}

#[derive(Deserialize, Serialize)]
pub struct GitHookResponse {
    pub ok: bool,
    pub message: String,
}