MCPcopy Create free account
hub / github.com/coleam00/remote-agentic-coding-system / sendMessage

Method sendMessage

src/adapters/github.ts:66–84  ·  view source on GitHub ↗

* Send a message to a GitHub issue or PR

(conversationId: string, message: string)

Source from the content-addressed store, hash-verified

64 * Send a message to a GitHub issue or PR
65 */
66 async sendMessage(conversationId: string, message: string): Promise<void> {
67 const parsed = this.parseConversationId(conversationId);
68 if (!parsed) {
69 console.error('[GitHub] Invalid conversationId:', conversationId);
70 return;
71 }
72
73 try {
74 await this.octokit.rest.issues.createComment({
75 owner: parsed.owner,
76 repo: parsed.repo,
77 issue_number: parsed.number,
78 body: message,
79 });
80 console.log(`[GitHub] Comment posted to ${conversationId}`);
81 } catch (error) {
82 console.error('[GitHub] Failed to post comment:', { error, conversationId });
83 }
84 }
85
86 /**
87 * Get streaming mode (always batch for GitHub to avoid comment spam)

Callers 1

handleWebhookMethod · 0.95

Calls 1

parseConversationIdMethod · 0.95

Tested by

no test coverage detected