pub enum PluginEvent {
Startup,
IssueCreated {
issue_id: String,
},
IssueUpdated {
issue_id: String,
},
IssueStatusChanged {
issue_id: String,
old_status: String,
new_status: String,
},
CommitCreated {
commit_hash: String,
},
BranchCreated {
branch_id: String,
},
BranchUpdated {
branch_id: String,
},
AgentAction {
action: String,
branch_id: String,
},
PipelineStatusQuery {
mr_id: String,
project_id: String,
source_branch: String,
target_branch: String,
forge_type: String,
api_url: String,
},
Custom {
name: String,
payload: Value,
},
}Expand description
Plugin lifecycle and operational events.
Serialised as {"type": "...", "data": {...}} so Lua tables stay
ergonomic (event.type == "IssueCreated") and Rust code stays exhaustive.
Variants§
Startup
ProGit just started.
IssueCreated
An issue was created.
IssueUpdated
An issue was updated.
IssueStatusChanged
An issue’s status changed.
CommitCreated
A commit was created.
BranchCreated
A virtual branch was created.
BranchUpdated
A virtual branch was updated.
AgentAction
An agent action ran on a branch.
PipelineStatusQuery
CI pipeline status query for a merge request.
Fields
Custom
Plugin-to-plugin custom event.
Trait Implementations§
Source§impl Clone for PluginEvent
impl Clone for PluginEvent
Source§fn clone(&self) -> PluginEvent
fn clone(&self) -> PluginEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginEvent
impl Debug for PluginEvent
Source§impl<'de> Deserialize<'de> for PluginEvent
impl<'de> Deserialize<'de> for PluginEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PluginEvent
impl RefUnwindSafe for PluginEvent
impl Send for PluginEvent
impl Sync for PluginEvent
impl Unpin for PluginEvent
impl UnsafeUnpin for PluginEvent
impl UnwindSafe for PluginEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more