Skip to main content

ForgeCommentAdapter

Trait ForgeCommentAdapter 

pub trait ForgeCommentAdapter: Send + Sync {
    // Required method
    fn post_comment(
        &self,
        channel: Option<&str>,
        repo: &str,
        number: u64,
        body: &str,
    ) -> Result<(), String>;
}
Expand description

Injected seam that performs the actual forge write. Kept synchronous because SopCapability::execute is sync (called under the engine mutex); implementations bridge to their async forge client themselves (see ChannelForgeAdapter).

Required Methods§

Source

fn post_comment( &self, channel: Option<&str>, repo: &str, number: u64, body: &str, ) -> Result<(), String>

Post body as a comment on repo issue/PR number.

channel optionally names the channel-map key to post through (git.<alias>); None = the adapter’s single configured git channel. Returns a human-readable error on failure.

Implementors§