pub struct CodeChangePublishedMessage {
pub provider: String,
pub url: String,
pub repo: String,
pub identifier: String,
pub action: Option<String>,
pub branch: Option<String>,
pub uuid: String,
pub session_id: String,
}Expand description
code_change_published system message — the session is now associated
with a published code change (a pull/merge request). Fires on creation and
whenever the session contributes to an existing one, so bind on every
event; re-emission for the same URL is possible and idempotent. Values are
scraped from captured command output — treat them as a binding hint and
verify against the forge before routing authenticated requests.
Fields§
§provider: StringForge classification derived from the URL’s shape (github,
github-enterprise, gitlab, bitbucket, gerrit today). Open set
— treat an unknown value as a valid provider, never as an error.
url: StringWeb URL of the pull/merge request. Unverified.
repo: StringRepository path from the URL (owner/name on GitHub; may carry more
segments on GitLab).
identifier: StringProvider-native change identifier — the PR/MR number as a string.
action: Option<String>What the session did that produced this announcement: the flag-aware
gh pr verb it ran ("created", "edited", "merged",
"commented", "closed", "reopened", "ready", "draft",
"auto-merge-enabled", "auto-merge-disabled"), "pushed" for a
push to a branch that has a PR, "checked-out" for gh pr checkout,
or "started" for the open change on the branch a Claude Desktop
session began on. Always sent by current producers (CLI 2.1.239+),
absent only from older ones. Open set — treat unknown values as valid.
branch: Option<String>The session’s working branch when it produced the change. Sent only
for providers whose changes have no head branch of their own
(gerrit), so a host can place the change on that checkout; absent
for every other provider (CLI 2.1.259+).
uuid: String§session_id: StringTrait Implementations§
Source§impl Clone for CodeChangePublishedMessage
impl Clone for CodeChangePublishedMessage
Source§fn clone(&self) -> CodeChangePublishedMessage
fn clone(&self) -> CodeChangePublishedMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more