pub fn build_allocation(
evt: &PullRequestEvent,
namespace: &str,
pool_name: Option<&str>,
include_drafts: bool,
) -> Result<EphemeralAllocation, FactoryError>Expand description
Build a typed EphemeralAllocation from a PR event.
Routing knobs:
namespace— where to create the Allocation. Same namespace as the pool (typicallyephemeral-pools).pool_name— whenSome, pin the allocation to a named pool (skips selector routing). WhenNone, the reconciler matches via PoolSelector.include_drafts— whenfalse, draft PRs returnDraftExcluded.