Create PipelineRun in response to webhook triggers.

This commit is contained in:
Tom Alexander
2024-09-28 19:43:26 -04:00
parent b8444344c4
commit ed1e1c08d0
9 changed files with 345 additions and 125 deletions

View File

@@ -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,