pub enum ReactionAction {
SendToAgent,
Notify,
AutoMerge,
}Expand description
What a reaction should actually do when it fires. Matches the TS
union "send-to-agent" | "notify" | "auto-merge" — kebab-case on the
wire so TS config files round-trip unchanged.
Variants§
SendToAgent
Send a message to the agent, asking it to fix whatever broke.
Uses ReactionConfig::message as the payload.
Notify
Fire a notification at a human (stdout, Slack, desktop, …).
AutoMerge
Merge the PR. Only makes sense for approved-and-green.
Implementations§
Trait Implementations§
Source§impl Clone for ReactionAction
impl Clone for ReactionAction
Source§fn clone(&self) -> ReactionAction
fn clone(&self) -> ReactionAction
Returns a duplicate of the value. Read more
1.0.0 · 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 ReactionAction
impl Debug for ReactionAction
Source§impl<'de> Deserialize<'de> for ReactionAction
impl<'de> Deserialize<'de> for ReactionAction
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
Source§impl Display for ReactionAction
impl Display for ReactionAction
Source§impl Hash for ReactionAction
impl Hash for ReactionAction
Source§impl PartialEq for ReactionAction
impl PartialEq for ReactionAction
Source§impl Serialize for ReactionAction
impl Serialize for ReactionAction
impl Copy for ReactionAction
impl Eq for ReactionAction
impl StructuralPartialEq for ReactionAction
Auto Trait Implementations§
impl Freeze for ReactionAction
impl RefUnwindSafe for ReactionAction
impl Send for ReactionAction
impl Sync for ReactionAction
impl Unpin for ReactionAction
impl UnsafeUnpin for ReactionAction
impl UnwindSafe for ReactionAction
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.