11use serde:: { Deserialize , Serialize } ;
22use sha1_smol:: Digest ;
33
4- use crate :: api:: VcsInfo ;
5-
64use super :: ChunkedFileState ;
75
86#[ derive( Debug , Serialize ) ]
@@ -25,3 +23,24 @@ pub struct AssembleBuildResponse {
2523 pub detail : Option < String > ,
2624 pub artifact_url : Option < String > ,
2725}
26+
27+ /// VCS information for build app uploads
28+ #[ derive( Debug , Serialize ) ]
29+ pub struct VcsInfo < ' a > {
30+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
31+ pub head_sha : Option < & ' a str > ,
32+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
33+ pub base_sha : Option < & ' a str > ,
34+ #[ serde( skip_serializing_if = "Option::is_none" , rename = "provider" ) ]
35+ pub vcs_provider : Option < & ' a str > ,
36+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
37+ pub head_repo_name : Option < & ' a str > ,
38+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
39+ pub base_repo_name : Option < & ' a str > ,
40+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
41+ pub head_ref : Option < & ' a str > ,
42+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
43+ pub base_ref : Option < & ' a str > ,
44+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
45+ pub pr_number : Option < & ' a u32 > ,
46+ }
0 commit comments