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

Function commentOnPR

script/beta.ts:21–34  ·  view source on GitHub ↗
(prNumber: number, reason: string)

Source from the content-addressed store, hash-verified

19}
20
21async function commentOnPR(prNumber: number, reason: string) {
22 const body = `⚠️ **Blocking Beta Release**
23
24This PR cannot be merged into the beta branch due to: **${reason}**
25
26Please resolve this issue to include this PR in the next beta release.`
27
28 try {
29 await $`gh pr comment ${prNumber} --body ${body}`
30 console.log(` Posted comment on PR #${prNumber}`)
31 } catch (err) {
32 console.log(` Failed to post comment on PR #${prNumber}: ${err}`)
33 }
34}
35
36async function conflicts() {
37 const out = await $`git diff --name-only --diff-filter=U`.text().catch(() => "")

Callers 1

mainFunction · 0.85

Calls 1

logMethod · 0.45

Tested by

no test coverage detected