Create PipelineRun in response to webhook triggers.
This commit is contained in:
@@ -97,6 +97,7 @@ impl GiteaClient {
|
||||
|
||||
/// A single API response for GetTree containing only one page.
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
struct ResponseGetTree {
|
||||
sha: String,
|
||||
url: String,
|
||||
@@ -107,6 +108,7 @@ struct ResponseGetTree {
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
struct ResponseObjectReference {
|
||||
path: String,
|
||||
mode: String,
|
||||
@@ -144,6 +146,7 @@ impl TreeFileReference {
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
struct ResponseReadFile {
|
||||
content: String,
|
||||
encoding: String,
|
||||
|
||||
Reference in New Issue
Block a user