MCPcopy Create free account
hub / github.com/anomalyco/opencode / createComment

Function createComment

packages/opencode/src/cli/cmd/github.handler.ts:1264–1273  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

1262 }
1263
1264 async function createComment(body: string) {
1265 // Only called for non-schedule events, so issueId is defined
1266 console.log("Creating comment...")
1267 return await octoRest.rest.issues.createComment({
1268 owner,
1269 repo,
1270 issue_number: issueId!,
1271 body,
1272 })
1273 }
1274
1275 async function createPR(base: string, branch: string, title: string, body: string): Promise<number | null> {
1276 console.log("Creating pull request...")

Callers 1

github.handler.tsFile · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected