pub struct CreateRepoBuildRequest {
pub branch: String,
pub commit: String,
pub env: Option<HashMap<String, String>>,
pub message: Option<String>,
pub pipeline_ir: Option<String>,
pub repo_name: String,
pub source: Option<String>,
pub source_b64: Option<String>,
pub source_slug: String,
}Expand description
Creates a build by addressing the pipeline through its repo-natural
identity — repo_name (owner/repo) plus source_slug (the in-repo
@hm.pipeline("…") name) — rather than the org-global slug. This is the
hm run path: a repo-local client knows its git remote and its pipeline
name but not the namespaced slug. Build semantics are otherwise
identical to createBuild.
JSON schema
{
"title": "CreateRepoBuildRequest",
"description": "Creates a build by addressing the pipeline through its
repo-natural identity — `repo_name` (`owner/repo`) plus `source_slug`
(the in-repo `@hm.pipeline(\"…\")` name) — rather than the org-global
slug. This is the `hm run` path: a repo-local client knows its git
remote and its pipeline name but not the namespaced slug. Build
semantics are otherwise identical to `createBuild`.",
"type": "object",
"required": [
"branch",
"commit",
"repo_name",
"source_slug"
],
"properties": {
"branch": {
"description": "Source branch.",
"type": "string"
},
"commit": {
"description": "Source commit SHA.",
"type": "string"
},
"env": {
"description": "Build-level environment variables.",
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "string"
}
},
"message": {
"description": "Optional build/commit message.",
"type": [
"string",
"null"
]
},
"pipeline_ir": {
"description": "The pre-rendered v0 IR JSON the engine materialises
into jobs. When absent/blank the engine renders the pipeline's IR in a
sandbox VM instead.",
"type": [
"string",
"null"
]
},
"repo_name": {
"description": "The worktree's repository as `owner/repo` (from its
git remote).",
"type": "string"
},
"source": {
"description": "How the build was triggered (e.g. `api`, `ui`).
Defaults to `api`.",
"type": [
"string",
"null"
]
},
"source_b64": {
"description": "Base64-encoded source tarball (the `hm run`
local-code upload). When present, the API stores it at the build's key
and derives the internal, runner-token-authenticated `source_url`.",
"type": [
"string",
"null"
]
},
"source_slug": {
"description": "The in-repo pipeline name — the
`@hm.pipeline(\"…\")` slug.",
"type": "string"
}
}
}Fields§
§branch: StringSource branch.
commit: StringSource commit SHA.
env: Option<HashMap<String, String>>Build-level environment variables.
message: Option<String>Optional build/commit message.
pipeline_ir: Option<String>The pre-rendered v0 IR JSON the engine materialises into jobs. When absent/blank the engine renders the pipeline’s IR in a sandbox VM instead.
repo_name: StringThe worktree’s repository as owner/repo (from its git remote).
source: Option<String>How the build was triggered (e.g. api, ui). Defaults to api.
source_b64: Option<String>Base64-encoded source tarball (the hm run local-code upload). When
present, the API stores it at the build’s key and derives the
internal, runner-token-authenticated source_url.
source_slug: StringThe in-repo pipeline name — the @hm.pipeline("…") slug.
Trait Implementations§
Source§impl Clone for CreateRepoBuildRequest
impl Clone for CreateRepoBuildRequest
Source§fn clone(&self) -> CreateRepoBuildRequest
fn clone(&self) -> CreateRepoBuildRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more