Updated View as Markdown

Push provenance

Push provenance

Where a push came from (repo, commit, ref, CI run, commit message, author), read from the Forgejo or Gitea Actions environment and the local git checkout, and sent as the provenance object Storefront keeps in its push history. Everything is best-effort metadata: a missing or invalid value is dropped with a warning and never fails a push.

Provenance

pub struct Provenance { # [serde(skip_serializing_if = "Option::is_none")] pub repo_url : Option < String >, # [serde(skip_serializing_if = "Option::is_none")] pub commit : Option < String >, # [serde(skip_serializing_if = "Option::is_none")] pub ref_name : Option < String >, # [serde(skip_serializing_if = "Option::is_none")] pub run_url : Option < String >, # [serde(skip_serializing_if = "Option::is_none")] pub message : Option < String >, # [serde(skip_serializing_if = "Option::is_none")] pub author_name : Option < String >, # [serde(skip_serializing_if = "Option::is_none")] pub author_email : Option < String >, }

Field names and limits match PushProvenance in Storefront’s src/push_runs.rs.

detect

pub fn detect() -> Option < Provenance >;

Reads provenance from the process environment and the git checkout in the current directory. None when nothing could be determined.

Back to top